From d922c7b79af29d2678921389c8e25f8130ba0c49 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 6 May 2021 17:43:15 -0400 Subject: Disable regex tests on windows --- tests/test_modes_filter_all.c | 2 ++ tests/test_modes_filter_general.c | 2 ++ 2 files changed, 4 insertions(+) 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"; -- cgit