From: Martin Matuška Date: Fri, 25 Oct 2024 17:45:28 +0000 (+0200) Subject: tests: redirect stdout in one call in test_extract_tar_absolute_paths (#2386) X-Git-Tag: v3.8.0~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cea675da23c1fc13eefcd778995d9448a1a7207;p=thirdparty%2Flibarchive.git tests: redirect stdout in one call in test_extract_tar_absolute_paths (#2386) This redirects the message "Removing leading '/' from member names" from stderr to a file in one case. --- diff --git a/tar/test/test_option_P.c b/tar/test/test_option_P.c index e63da3e08..953d9f589 100644 --- a/tar/test/test_option_P.c +++ b/tar/test/test_option_P.c @@ -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);