Browse Source

Testsuite fix.

* tests/remfiles10.at: Don't expect EINVAL when trying to remove
CWD.
Sergey Poznyakoff 5 years ago
parent
commit
b31afe7cf0
1 changed files with 8 additions and 2 deletions
  1. 8 2
      tests/remfiles10.at

+ 8 - 2
tests/remfiles10.at

@@ -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