]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: ignore the python libmount tests when they're run under UBSan
authorEvgeny Vereshchagin <evvers@ya.ru>
Wed, 1 Jul 2020 21:26:56 +0000 (21:26 +0000)
committerKarel Zak <kzak@redhat.com>
Fri, 3 Jul 2020 09:18:54 +0000 (11:18 +0200)
ts_init_py meddles with LD_LIBRARY_PATH causing those tests to fail with
```
+Traceback (most recent call last):
+  File "/home/travis/build/karelzak/util-linux/libmount/python/test_mount_tab.py", line 8, in <module>
+    import pylibmount as mnt
+ImportError: /home/travis/build/karelzak/util-linux/.libs/libblkid.so.1: undefined symbol: __ubsan_handle_negate_overflow
}}}-diff
```

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 edbf75f07679a24df74acebf5136598e6d6f719f..959d79058b5d33bd1a5490121110dc88a05e5c4a 100755 (executable)
@@ -20,7 +20,7 @@ ts_check_prog "mkfs.ext4"
 
 ts_init_py libmount
 
-if [ "$TS_ENABLE_ASAN" == "yes" ]; then
+if [ "$TS_ENABLE_ASAN" == "yes" -o "$TS_ENABLE_UBSAN" == "yes" ]; then
        TS_KNOWN_FAIL="yes"
 fi
 
index 0baff118c56ef9d5250f6938e3029589f324a03d..94c9e5b9a3b1408a5d21211a3c6498d3283ef7e2 100755 (executable)
@@ -19,7 +19,7 @@ ts_check_prog "mkfs.ext4"
 
 ts_init_py libmount
 
-if [ "$TS_ENABLE_ASAN" == "yes" ]; then
+if [ "$TS_ENABLE_ASAN" == "yes" -o "$TS_ENABLE_UBSAN" == "yes" ]; then
        TS_KNOWN_FAIL="yes"
 fi
 
index 832e6d980eac41facbf2d957981817ef1cc927bf..9754afec717b6726e069d678497656bd6aed4a86 100755 (executable)
@@ -9,7 +9,7 @@ TS_DESC="tab files-py"
 ts_init "$*"
 ts_init_py libmount
 
-if [ "$TS_ENABLE_ASAN" == "yes" ]; then
+if [ "$TS_ENABLE_ASAN" == "yes" -o "$TS_ENABLE_UBSAN" == "yes" ]; then
        TS_KNOWN_FAIL="yes"
 fi
 
index 5dd33328258206b0b6923b587f11d32828c3f9e7..d252a5478afe41d136fc8089a7e22b0627cf70d9 100755 (executable)
@@ -10,7 +10,7 @@ ts_skip_nonroot
 
 ts_init_py libmount
 
-if [ "$TS_ENABLE_ASAN" == "yes" ]; then
+if [ "$TS_ENABLE_ASAN" == "yes" -o "$TS_ENABLE_UBSAN" == "yes" ]; then
        TS_KNOWN_FAIL="yes"
 fi
 
index 369a521b133afbdac5c0644fb728eb9996bc6a29..e4bba9c429c5a2a156579d010ec1488ce84f6cb2 100755 (executable)
@@ -10,7 +10,7 @@ ts_init "$*"
 ts_init_py libmount
 ts_skip_nonroot
 
-if [ "$TS_ENABLE_ASAN" == "yes" ]; then
+if [ "$TS_ENABLE_ASAN" == "yes" -o "$TS_ENABLE_UBSAN" == "yes" ]; then
        TS_KNOWN_FAIL="yes"
 fi