From 77aa74d151643ff2ec96156942e004fba19464a5 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sat, 19 Aug 2023 09:32:30 +0100 Subject: testsuite: skip some tests in native build The testsuite includes some Windows-specific tests. Exclude these when running a test on a native build to avoid upsetting the results. --- testsuite/env.tests | 4 ++++ testsuite/sh.tests | 2 ++ 2 files changed, 6 insertions(+) diff --git a/testsuite/env.tests b/testsuite/env.tests index 456808728..8b810e44b 100755 --- a/testsuite/env.tests +++ b/testsuite/env.tests @@ -6,6 +6,7 @@ # testing "test name" "commands" "expected result" "file input" "stdin" +optional PLATFORM_MINGW32 # Not so much a test of 'env' as of whether environment variables # (or the lack thereof) are correctly passed to child processes. testing "environment variables 1a" \ @@ -65,3 +66,6 @@ testing "environment variables 4c" \ "sh -c 'echo \${V-unset}'" \ "unset " "" "" +SKIP= + +exit $FAILCOUNT diff --git a/testsuite/sh.tests b/testsuite/sh.tests index 749d2dde2..0eccf20bc 100755 --- a/testsuite/sh.tests +++ b/testsuite/sh.tests @@ -11,6 +11,7 @@ test -f "$bindir/.config" && . "$bindir/.config" # testing "test name" "options" "expected result" "file input" "stdin" +optional PLATFORM_MINGW32 # Test case testing "shebang" \ "uudecode; sh -c './shebang.sh'; echo \$?" \ @@ -112,5 +113,6 @@ testing "sh read with \\CRLF" \ testing "sh read with \\CR" \ "printf '1\\\\\r2\\r\\n' | { read var; printf \"\${var}\\\\n\"; }" \ "1\r2\n" "" "" +SKIP= exit $FAILCOUNT -- cgit v1.2.3-55-g6feb