From 11e9627658869cd785f7a0f74eef863e78e75a83 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Sun, 7 Jul 2024 02:11:45 +0200 Subject: [PATCH] tests/libsubid/04_nss: fix setting basedir Align on variable name BUILD_BASE_DIR for overriding the toplevel directory. This is the same name as accepted by tests/common/config.sh. Without this, the test libsubid/04_nss fails in Debian's autopkgtests. Signed-off-by: Chris Hofstaedtler --- tests/libsubid/04_nss/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/libsubid/04_nss/Makefile b/tests/libsubid/04_nss/Makefile index 7d7ae3e6..3fbf989e 100644 --- a/tests/libsubid/04_nss/Makefile +++ b/tests/libsubid/04_nss/Makefile @@ -1,7 +1,7 @@ all: test_nss libsubid_zzz.so -BASE_TEST_DIR ?= $(shell git rev-parse --show-toplevel) -basedir := $(BASE_TEST_DIR) +BUILD_BASE_DIR ?= $(shell git rev-parse --show-toplevel) +basedir := $(BUILD_BASE_DIR) test_nss: test_nss.c $(basedir)/lib/nss.c gcc -c -I$(basedir)/lib/ -I$(basedir) -o test_nss.o test_nss.c