From 6d0f0bba3679cee162110a5e15d2436e7e5d6c84 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 10 Oct 2022 13:49:21 +0200 Subject: [PATCH] fix a test when running from a symlinked dir --- debian/qualify-clang.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/qualify-clang.sh b/debian/qualify-clang.sh index 79a7908b..a87e59df 100755 --- a/debian/qualify-clang.sh +++ b/debian/qualify-clang.sh @@ -67,7 +67,7 @@ void test() { scan-build-$VERSION -o scan-build gcc -c foo.c &> /dev/null || true scan-build-$VERSION -o scan-build clang-$VERSION -c foo.c &> /dev/null scan-build-$VERSION --exclude non-existing/ --exclude /tmp/ -v clang-$VERSION -c foo.c &> /dev/null -scan-build-$VERSION --exclude $(pwd) -v clang-$VERSION -c foo.c &> foo.log +scan-build-$VERSION --exclude $(realpath $(pwd)) -v clang-$VERSION -c foo.c &> foo.log if ! grep -q -E "scan-build: 0 bugs found." foo.log; then echo "scan-build --exclude didn't ignore the defect" exit 42