From fe73ef9789132f7e3bdcae5cecd3a8dd40876f92 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Wed, 4 Jan 2023 01:11:04 +0000 Subject: [PATCH] tests: add ts_skip_exitcode_not_supported --- tests/functions.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/functions.sh b/tests/functions.sh index 5752a2cdae..25f988fc64 100644 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -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 +} -- 2.47.2