]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: add ts_skip_exitcode_not_supported
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 4 Jan 2023 01:11:04 +0000 (01:11 +0000)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 4 Jan 2023 01:11:04 +0000 (01:11 +0000)
tests/functions.sh

index 5752a2cdaeed089b0e262dba1eb281ffae12883d..25f988fc640746d9676e6b2b5e0740439fa356cc 100644 (file)
@@ -1119,3 +1119,9 @@ function ts_get_asan_rt_path {
                echo "$rt_path"
        fi
 }
+
+function ts_skip_exitcode_not_supported {
+       if [ $? -eq $TS_EXIT_NOTSUPP ]; then
+               ts_skip "functionality not implemented by system"
+       fi
+}