Skip to content

Commit b18a546

Browse files
committed
tests: always run mkdir in a clean environment
When env_use_destdir is used to run the test linked against the libraries built with ASan/UBSan `mkdir` fails with ``` ==13272==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD ``` Signed-off-by: Evgeny Vereshchagin <[email protected]>
1 parent d43442a commit b18a546

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libsepol/tests/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
ENV ?= env
12
M4 ?= m4
23
MKDIR ?= mkdir
34
EXE ?= libsepol-tests
@@ -47,7 +48,7 @@ clean:
4748

4849

4950
test: $(EXE) $(policies)
50-
$(MKDIR) -p policies/test-downgrade
51+
$(ENV) -i $(MKDIR) -p policies/test-downgrade
5152
../../checkpolicy/checkpolicy -M policies/test-cond/refpolicy-base.conf -o policies/test-downgrade/policy.hi
5253
./$(EXE)
5354

0 commit comments

Comments
 (0)