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 X-Git-Tag: v3.7.8~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=af119e95ce2182604f5b778fbb5b8050c637dff6;p=thirdparty%2Flibarchive.git tests: redirect stdout in one call in test_extract_tar_absolute_paths This redirects the message "Removing leading '/' from member names" from stderr to a file in one case. Closes #2386 (cherry picked from commit 2cea675da23c1fc13eefcd778995d9448a1a7207) --- 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);