We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c2e74d commit 65a38beCopy full SHA for 65a38be
2 files changed
tests/test_cli.c
@@ -346,6 +346,9 @@ TEST(cli_find_cli_on_path) {
346
}
347
348
TEST(cli_find_cli_fallback_paths) {
349
+#ifdef _WIN32
350
+ SKIP("shell scripts + chmod not available on Windows");
351
+#endif
352
/* Port of TestFindCLI_FallbackPaths */
353
char tmpdir[256]; snprintf(tmpdir, sizeof(tmpdir), "/tmp/cli-find-XXXXXX");
354
if (!cbm_mkdtemp(tmpdir))
tests/test_security.c
@@ -50,7 +50,12 @@ TEST(shell_rejects_ampersand) {
50
51
52
TEST(shell_rejects_backslash) {
53
54
+ /* Backslash is allowed on Windows (path separator) */
55
+ ASSERT_TRUE(cbm_validate_shell_arg("foo\\bar"));
56
+#else
57
ASSERT_FALSE(cbm_validate_shell_arg("foo\\bar"));
58
59
PASS();
60
61
0 commit comments