We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b84943 commit 8349f81Copy full SHA for 8349f81
1 file changed
tests/test_discover.c
@@ -466,9 +466,10 @@ TEST(discover_cbmignore_stacks) {
466
467
TEST(discover_symlink_skipped) {
468
#ifdef _WIN32
469
- /* Symlinks require elevated privileges on Windows — skip */
+ /* Symlinks require elevated privileges on Windows — skip.
470
+ * Guard the entire body: symlink() doesn't exist on Windows. */
471
SKIP("symlinks need admin on Windows");
-#endif
472
+#else
473
char *base = th_mktempdir("cbm_disc_sym");
474
ASSERT(base != NULL);
475
@@ -499,6 +500,7 @@ TEST(discover_symlink_skipped) {
499
500
cbm_discover_free(files, count);
501
th_cleanup(base);
502
PASS();
503
+#endif
504
}
505
506
TEST(discover_new_ignore_patterns) {
0 commit comments