Skip to content

Commit 5a3943f

Browse files
committed
bkpr: fix unittest when HAVE_USDT=1
``` pseudorand_u64 called! Aborted (core dumped) make: *** [Makefile:786: unittest/plugins/bkpr/test/run-bkpr_db] Error 134 ``` Signed-off-by: Rusty Russell <[email protected]>
1 parent 8cc86f3 commit 5a3943f

File tree

4 files changed

+1
-9
lines changed

4 files changed

+1
-9
lines changed

lightningd/test/run-find_my_abspath.c

-3
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,6 @@ void towire_node_id(u8 **pptr UNNEEDED, const struct node_id *id UNNEEDED)
266266
/* Generated stub for trace_span_end */
267267
void trace_span_end(const void *key UNNEEDED)
268268
{ fprintf(stderr, "trace_span_end called!\n"); abort(); }
269-
/* Generated stub for trace_span_resume_ */
270-
void trace_span_resume_(const void *key UNNEEDED, const char *lbl UNNEEDED)
271-
{ fprintf(stderr, "trace_span_resume_ called!\n"); abort(); }
272269
/* Generated stub for trace_span_start_ */
273270
void trace_span_start_(const char *name UNNEEDED, const void *key UNNEEDED)
274271
{ fprintf(stderr, "trace_span_start_ called!\n"); abort(); }

plugins/bkpr/test/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ BOOKKEEPER_TEST_COMMON_OBJS := \
1717
common/key_derive.o \
1818
common/memleak.o \
1919
common/node_id.o \
20+
common/pseudorand.o \
2021
common/setup.o \
2122
common/trace.o \
2223
common/timeout.o \

plugins/bkpr/test/run-bkpr_db.c

-3
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,6 @@ bool param_check(struct command *cmd UNNEEDED,
219219
const char *buffer UNNEEDED,
220220
const jsmntok_t tokens[] UNNEEDED, ...)
221221
{ fprintf(stderr, "param_check called!\n"); abort(); }
222-
/* Generated stub for pseudorand_u64 */
223-
uint64_t pseudorand_u64(void)
224-
{ fprintf(stderr, "pseudorand_u64 called!\n"); abort(); }
225222
/* Generated stub for toks_alloc */
226223
jsmntok_t *toks_alloc(const tal_t *ctx UNNEEDED)
227224
{ fprintf(stderr, "toks_alloc called!\n"); abort(); }

plugins/bkpr/test/run-recorder.c

-3
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,6 @@ bool param_check(struct command *cmd UNNEEDED,
225225
const char *buffer UNNEEDED,
226226
const jsmntok_t tokens[] UNNEEDED, ...)
227227
{ fprintf(stderr, "param_check called!\n"); abort(); }
228-
/* Generated stub for pseudorand_u64 */
229-
uint64_t pseudorand_u64(void)
230-
{ fprintf(stderr, "pseudorand_u64 called!\n"); abort(); }
231228
/* Generated stub for toks_alloc */
232229
jsmntok_t *toks_alloc(const tal_t *ctx UNNEEDED)
233230
{ fprintf(stderr, "toks_alloc called!\n"); abort(); }

0 commit comments

Comments
 (0)