diff options
author | Pádraig Brady <P@draigBrady.com> | 2008-06-09 16:36:38 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-06-10 08:32:52 +0200 |
commit | a16bee4f071cea80445b0dd3648db3079e80eb43 (patch) | |
tree | 5bee516c647048071f89984e624d3797e112f2b5 /tests/misc | |
parent | e63c9825da0a71c27e68cd76c6ebf5468b36cdb1 (diff) | |
download | coreutils-a16bee4f071cea80445b0dd3648db3079e80eb43.tar.xz |
remove test for specific diagnostic when truncating missing directory
Solaris 10 returns ENOTDIR when truncating a nonexistent directory,
whereas Linux returns EISDIR (because it has a trailing /).
* tests/misc/truncate-fail-diag: Remove the test for the specific error.
Diffstat (limited to 'tests/misc')
-rwxr-xr-x | tests/misc/truncate-fail-diag | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/misc/truncate-fail-diag b/tests/misc/truncate-fail-diag index 32896258d..0c6bb1c57 100755 --- a/tests/misc/truncate-fail-diag +++ b/tests/misc/truncate-fail-diag @@ -42,9 +42,8 @@ compare out exp || fail=1 dir=$d1/ truncate -s0 $dir > out 2>&1 && fail=1 -cat <<EOF > exp -truncate: cannot open \`$dir' for writing: Is a directory -EOF -compare out exp || fail=1 +#The following can be returned at least +#truncate: cannot open \`$dir' for writing: Not a directory +#truncate: cannot open \`$dir' for writing: Is a directory (exit $fail); exit $fail |