]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Testsuite fix.
authorSergey Poznyakoff <gray@gnu.org>
Wed, 13 Nov 2019 06:37:41 +0000 (08:37 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Wed, 13 Nov 2019 06:37:41 +0000 (08:37 +0200)
* tests/remfiles10.at: Don't expect EINVAL when trying to remove
CWD.

tests/remfiles10.at

index 398410712943eed1d965a097a60a584c891c9cbf..b4333645c84a910255ec05fa10b73002bf07a059 100644 (file)
@@ -37,10 +37,16 @@ exit $tar_status
 B
 foo
 ],
+[stderr],[],[],[gnu])
+
+# Check standard error produced by the above command.  Exact errno reported
+# when trying to remove CWD may differ, so it is stripped off.
+AT_CHECK([sed '2s/:[[^:]]*$//' stderr],
+[0],
 [A
-tar: .: Cannot rmdir: Invalid argument
+tar: .: Cannot rmdir
 tar: Exiting with failure status due to previous errors
 B
-],[],[],[gnu])
+])
 
 AT_CLEANUP