]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Avoid unreachable code in this test (#2528)
authorTim Kientzle <kientzle@acm.org>
Sat, 1 Mar 2025 17:06:31 +0000 (09:06 -0800)
committerGitHub <noreply@github.com>
Sat, 1 Mar 2025 17:06:31 +0000 (09:06 -0800)
As remarked in #2521, this test has unreachable code on Windows, which
triggers a build failure in development due to warnings-as-errors.
(Release versions should not have warnings-as-errors.)

tar/test/test_option_ignore_zeros.c

index 31e0dd9404605a4799805048dfea6d9590a051e8..453e8a0907e6b2a9811966300aba4744ff321511 100644 (file)
@@ -76,8 +76,7 @@ DEFINE_TEST(test_option_ignore_zeros_mode_c)
        // bsdtar.exe: b: Can't translate uname '(null)' to UTF-8
        skipping("TODO: figure out why this test fails on github workflows with MSVC");
        return;
-#endif
-
+#else
        if (make_files())
                return;
 
@@ -97,6 +96,7 @@ DEFINE_TEST(test_option_ignore_zeros_mode_c)
        assertEqualFile("out/a", "in/a");
        assertEqualFile("out/b", "in/b");
        assertEqualFile("out/c", "in/c");
+#endif
 }
 
 static void