File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -346,6 +346,9 @@ TEST(cli_find_cli_on_path) {
346346}
347347
348348TEST (cli_find_cli_fallback_paths ) {
349+ #ifdef _WIN32
350+ SKIP ("shell scripts + chmod not available on Windows" );
351+ #endif
349352 /* Port of TestFindCLI_FallbackPaths */
350353 char tmpdir [256 ]; snprintf (tmpdir , sizeof (tmpdir ), "/tmp/cli-find-XXXXXX" );
351354 if (!cbm_mkdtemp (tmpdir ))
Original file line number Diff line number Diff line change @@ -50,7 +50,12 @@ TEST(shell_rejects_ampersand) {
5050}
5151
5252TEST (shell_rejects_backslash ) {
53+ #ifdef _WIN32
54+ /* Backslash is allowed on Windows (path separator) */
55+ ASSERT_TRUE (cbm_validate_shell_arg ("foo\\bar" ));
56+ #else
5357 ASSERT_FALSE (cbm_validate_shell_arg ("foo\\bar" ));
58+ #endif
5459 PASS ();
5560}
5661
You can’t perform that action at this time.
0 commit comments