From a0772e83559d4ef6928d00b5adfc4ccc537fa603 Mon Sep 17 00:00:00 2001 From: Greg Burd Date: Wed, 4 Nov 2026 17:42:12 -0500 Subject: [PATCH] test/c: leak-run.sh puts src/ on the include path lock_order_check.c now includes db_int.h for the two-env arm (#268), and db_int.h includes dbinc/queue.h from src/. leak-run.sh builds each driver with only -I$BUILD, so the leak job failed with "dbinc/queue.h: No such file or directory" on master after #268 and on the v2026.10.7.3 release PR. The Makefile rule already has src/ in CPPFLAGS; this matches it. Verified on Debian 12 (--enable-debug --enable-diagnostic): every driver builds and lock_order_check passes all three arms. (cherry picked from commit 8ba0c8540ee2cc8f69182dd8af42cd5e1f364256) --- test/c/leak-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/c/leak-run.sh b/test/c/leak-run.sh index 5733e0023c..33b8743c3f 100755 --- a/test/c/leak-run.sh +++ b/test/c/leak-run.sh @@ -48,7 +48,7 @@ for t in leak_si_locker leak_si_mvcc_mtx mvcc_purge_visible health_stats \ echo "=== building $t" # shellcheck disable=SC2086 $CC -g -O1 -Wall -Wextra -Wno-unused-parameter \ - -I"$BUILD" "$HERE/$t.c" "$BUILD/libdb.a" \ + -I"$BUILD" -I"$HERE/../../src" "$HERE/$t.c" "$BUILD/libdb.a" \ $LDF $LIBS -ldl -lpthread -o "$RUNDIR/$t" done