diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2021-05-06 17:43:15 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2021-05-06 17:43:15 -0400 |
commit | d922c7b79af29d2678921389c8e25f8130ba0c49 (patch) | |
tree | 29640d70b2259152ee6abe080f1049b767ead2e8 | |
parent | 8ac7a6a7ebad8090108bda662f15d7e134b0db3f (diff) | |
download | cleanpath-d922c7b79af29d2678921389c8e25f8130ba0c49.tar.gz |
Disable regex tests on windows
-rw-r--r-- | tests/test_modes_filter_all.c | 2 | ||||
-rw-r--r-- | tests/test_modes_filter_general.c | 2 |
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"; |