Skip to content

Commit

Permalink
tests/libsubid/04_nss: fix setting basedir
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
zeha authored and hallyn committed Jul 18, 2024
1 parent 34f2132 commit 11e9627
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/libsubid/04_nss/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 11e9627

Please sign in to comment.