]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
tests: redirect stdout in one call in test_extract_tar_absolute_paths (#2386) 2394/head
authorMartin Matuška <martin@matuska.org>
Fri, 25 Oct 2024 17:45:28 +0000 (19:45 +0200)
committerGitHub <noreply@github.com>
Fri, 25 Oct 2024 17:45:28 +0000 (18:45 +0100)
This redirects the message "Removing leading '/' from member names"
from stderr to a file in one case.

tar/test/test_option_P.c

index e63da3e0875c27bbf1c4d6410518179a5b51643d..953d9f58991c1fb389ea7165a28977d27daa66fe 100644 (file)
@@ -55,7 +55,7 @@ DEFINE_TEST(test_extract_tar_absolute_paths)
        UNLINK(temp_absolute_file_name);
 
        // Extracting the archive without -P / --absolute-paths should strip leading drive letter or slash
-       r = systemf("%s -xf test.tar", testprog);
+       r = systemf("%s -xf test.tar 2>test.err", testprog);
        assertEqualInt(r, 0);
        assertFileNotExists(temp_absolute_file_name);