From 2cea675da23c1fc13eefcd778995d9448a1a7207 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Matu=C5=A1ka?= Date: Fri, 25 Oct 2024 19:45:28 +0200 Subject: [PATCH] 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. --- tar/test/test_option_P.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2