t/read-to-pipe-async: fix -DNDEBUG support
authorDan Dedrick <dan.dedrick@gmail.com>
Thu, 20 Feb 2025 15:51:12 +0000 (10:51 -0500)
committerDan Dedrick <dan.dedrick@gmail.com>
Thu, 20 Feb 2025 15:56:33 +0000 (10:56 -0500)
When NDEBUG is defined this was trying to call log_err but it didn't
include the header file or link against the relevant .o file. This will
now fully build with -DNDEBUG.

Signed-off-by: Dan Dedrick <dan.dedrick@gmail.com>
Makefile
t/read-to-pipe-async.c

index 746a27d4804573ef3cf39ec7c89a1a01e3236ad0..173378fa44954f6a5e19092e92fa81e9e93114f3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -365,7 +365,7 @@ T_DEDUPE_PROGS = t/fio-dedupe
 T_VS_OBJS = t/verify-state.o t/log.o crc/crc32c.o crc/crc32c-intel.o crc/crc32c-arm64.o t/debug.o
 T_VS_PROGS = t/fio-verify-state
 
-T_PIPE_ASYNC_OBJS = t/read-to-pipe-async.o
+T_PIPE_ASYNC_OBJS = t/read-to-pipe-async.o t/log.o
 T_PIPE_ASYNC_PROGS = t/read-to-pipe-async
 
 T_IOU_RING_OBJS = t/io_uring.o lib/rand.o lib/pattern.o lib/strntol.o
index de98d03228f3e3f52134bfda535152512d6a0f94..2abe25d3d8266dbd74d19373a3163f39b3ff14da 100644 (file)
@@ -35,6 +35,7 @@
 #include <assert.h>
 
 #include "../flist.h"
+#include "../log.h"
 
 #include "compiler/compiler.h"