]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: ignore errors with enabled ASAN in python bindings
authorKarel Zak <kzak@redhat.com>
Mon, 15 Apr 2019 10:58:48 +0000 (12:58 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 15 Apr 2019 10:58:48 +0000 (12:58 +0200)
temporary solution... as it ends with
undefined symbol: __asan_option_detect_stack_use_after_return

Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/libmount/context-py
tests/ts/libmount/context-utab-py
tests/ts/libmount/tabfiles-py
tests/ts/libmount/tabfiles-tags-py
tests/ts/libmount/update-py

index dfc8faaeec51f8aee55eb78a98feb45372d7dd65..f86edd3af58e2cd8b26e7051c3600945b3dc9598 100755 (executable)
@@ -20,6 +20,10 @@ ts_check_prog "mkfs.ext4"
 
 ts_init_py libmount
 
+if [ "$TS_ENABLE_ASAN" == "yes" ]; then
+       TS_KNOWN_FAIL="yes"
+fi
+
 TESTPROG="$TS_HELPER_PYLIBMOUNT_CONTEXT"
 [ -x $TESTPROG ] || ts_die "test script missing"
 
index 89fc0c1573e33a2b0bc20f6ad7cf5a19e359ff18..3a1da05c14ead4eca371377c57e034f5589743f5 100755 (executable)
@@ -19,6 +19,10 @@ ts_check_prog "mkfs.ext4"
 
 ts_init_py libmount
 
+if [ "$TS_ENABLE_ASAN" == "yes" ]; then
+       TS_KNOWN_FAIL="yes"
+fi
+
 TESTPROG="$TS_HELPER_PYLIBMOUNT_CONTEXT"
 [ -x $TESTPROG ] || ts_die "test script missing"
 
index b1574607093cfed8216760686973c16ecf66f9c5..832e6d980eac41facbf2d957981817ef1cc927bf 100755 (executable)
@@ -9,7 +9,7 @@ TS_DESC="tab files-py"
 ts_init "$*"
 ts_init_py libmount
 
-if [ -f "$ASAN_SYMBOLIZER_PATH" ]; then
+if [ "$TS_ENABLE_ASAN" == "yes" ]; then
        TS_KNOWN_FAIL="yes"
 fi
 
index 5e72a6f907918d632744d5a5cb69c7bbe0e539fe..5dd33328258206b0b6923b587f11d32828c3f9e7 100755 (executable)
@@ -10,7 +10,7 @@ ts_skip_nonroot
 
 ts_init_py libmount
 
-if [ -f "$ASAN_SYMBOLIZER_PATH" ]; then
+if [ "$TS_ENABLE_ASAN" == "yes" ]; then
        TS_KNOWN_FAIL="yes"
 fi
 
index 66f175485b2f585e1a9300a7cb650c1f83d9a745..369a521b133afbdac5c0644fb728eb9996bc6a29 100755 (executable)
@@ -10,7 +10,7 @@ ts_init "$*"
 ts_init_py libmount
 ts_skip_nonroot
 
-if [ -f "$ASAN_SYMBOLIZER_PATH" ]; then
+if [ "$TS_ENABLE_ASAN" == "yes" ]; then
        TS_KNOWN_FAIL="yes"
 fi