aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2021-05-06 17:43:15 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2021-05-06 17:43:15 -0400
commitd922c7b79af29d2678921389c8e25f8130ba0c49 (patch)
tree29640d70b2259152ee6abe080f1049b767ead2e8
parent8ac7a6a7ebad8090108bda662f15d7e134b0db3f (diff)
downloadcleanpath-d922c7b79af29d2678921389c8e25f8130ba0c49.tar.gz
Disable regex tests on windows
-rw-r--r--tests/test_modes_filter_all.c2
-rw-r--r--tests/test_modes_filter_general.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_modes_filter_all.c b/tests/test_modes_filter_all.c
index 2c0d6b2..7e19242 100644
--- a/tests/test_modes_filter_all.c
+++ b/tests/test_modes_filter_all.c
@@ -45,10 +45,12 @@ const char *inputs[MAX_MODE][MAX_PART][MAX_RECORD] = {
"bin",
NULL
},
+#if !OS_WINDOWS
{ // Filter regex
".*",
NULL
},
+#endif
};
struct TestResult {
diff --git a/tests/test_modes_filter_general.c b/tests/test_modes_filter_general.c
index 44b1da9..50dec68 100644
--- a/tests/test_modes_filter_general.c
+++ b/tests/test_modes_filter_general.c
@@ -39,12 +39,14 @@ const char *inputs[MAX_MODE][MAX_PART][MAX_RECORD] = {
"intentionally bad", // test non-existent pattern in string
NULL
},
+#if !OS_WINDOWS
{ // Filter regex
"^/opt/local/.*",
"intentionally bad", // test non-existent pattern in string
"intentionally worse (", // cause total regex failure with unmatched parenthesis
NULL
},
+#endif
};
const char *expected = "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Apple/usr/bin";