diff --git a/tests/test_cli.c b/tests/test_cli.c index ecf580b67..425430b7c 100644 --- a/tests/test_cli.c +++ b/tests/test_cli.c @@ -346,6 +346,9 @@ TEST(cli_find_cli_on_path) { } TEST(cli_find_cli_fallback_paths) { +#ifdef _WIN32 + SKIP("shell scripts + chmod not available on Windows"); +#endif /* Port of TestFindCLI_FallbackPaths */ char tmpdir[256]; snprintf(tmpdir, sizeof(tmpdir), "/tmp/cli-find-XXXXXX"); if (!cbm_mkdtemp(tmpdir)) diff --git a/tests/test_security.c b/tests/test_security.c index 09c4bb7f3..6fd56a178 100644 --- a/tests/test_security.c +++ b/tests/test_security.c @@ -50,7 +50,12 @@ TEST(shell_rejects_ampersand) { } TEST(shell_rejects_backslash) { +#ifdef _WIN32 + /* Backslash is allowed on Windows (path separator) */ + ASSERT_TRUE(cbm_validate_shell_arg("foo\\bar")); +#else ASSERT_FALSE(cbm_validate_shell_arg("foo\\bar")); +#endif PASS(); }