tar: use filesystem-neutral replacement characters in the -s test

This commit is contained in:
Dustin L. Howett committed 2026-06-15 15:08:02 -05:00
1 parent 0e4fa9ff0d
commit 3ccaf85c7c
1 file changed
+2 -2
+2 -2
View File
@@ -46,9 +46,9 @@ DEFINE_TEST(test_option_s)
systemf("%s -xf test1_3.tar -C test1", testprog);
assertFileContents("foo", 3, "test1/in/d1/f##");
// For the 0-length pattern check, remember that "test1/" isn't part of the string affected by the regexp
systemf("%s -cf test1_4.tar -s /f*/\\<~\\>/g in/d1/foo", testprog);
systemf("%s -cf test1_4.tar -s /f*/[~]/g in/d1/foo", testprog);
systemf("%s -xf test1_4.tar -C test1", testprog);
assertFileContents("foo", 3, "test1/<>i<>n<>/<>d<>1<>/<f><>o<>o<>");
assertFileContents("foo", 3, "test1/[]i[]n[]/[]d[]1[]/[f][]o[]o[]");
/*
* Test 2: Basic substitution when extracting archive.
*/