xfstest 245: accept ENOTEMPTY as a valid error
authorJosef Bacik <josef@redhat.com>
Tue, 30 Nov 2010 22:22:34 +0000 (23:22 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 30 Nov 2010 22:22:34 +0000 (23:22 +0100)
commite6ac073fab9759633a967d8f0f7f510d08405159
treeac32d724a7c05cdaf0202ef05ba08bf4cc0c1dc7
parent388144a0499cb9d07f1600093a356bb4bba773ed
xfstest 245: accept ENOTEMPTY as a valid error

Test 245 only checks to see if the rename returned EEXIST, but according to the
rename(2) manpage, ENOTEMPTY is also a valid result, which is in fact what Btrfs
returns.  So just filter the output for ENOTEMPTY so that either EEXIST or
ENOTEMPTY will pass the test.  It's not pretty I know, but I couldn't really
figure out a good way to get an either/or output to compare.  With this fix
Btrfs now passes 245.

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
245 [changed mode: 0644->0755]