diff options
author | Jim Meyering <jim@meyering.net> | 2003-04-10 08:36:41 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-04-10 08:36:41 +0000 |
commit | ab828ae6a1005172f104cdc89589d5091c4f060f (patch) | |
tree | f755302e0a99a525eb5fa394192911e86b2a5297 /tests | |
parent | d4fa961a32030a5a67ac001ca030c40674ce0f3e (diff) | |
download | coreutils-ab828ae6a1005172f104cdc89589d5091c4f060f.tar.xz |
Skip this test (don't fail) if creating a file with nominal length > 4GB fails.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/tail-2/big-4gb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/tail-2/big-4gb b/tests/tail-2/big-4gb index 61f1720cf..9b53f7989 100755 --- a/tests/tail-2/big-4gb +++ b/tests/tail-2/big-4gb @@ -21,14 +21,17 @@ cd $tmp || framework_failure=1 # Create a file of size exactly 4GB (2^32) with 8 bytes # at the beginning and another set of 8 bytes at the end. # The rest will be NUL bytes. On most modern systems, the following -# creates a file that takes up only a few KB. Here, du -sh says 16KB. +# creates a file that takes up only a few KB. Here, du -sh says 16K. echo abcdefgh | tr -d '\n' > big || framework_failure=1 echo 87654321 | tr -d '\n' > tmp || framework_failure=1 # Seek 4GB - 8 dd bs=1 seek=4294967288 if=tmp of=big 2> err || dd_failed=1 if test "$dd_failed" = 1; then cat err 1>&2 - framework_failure=1 + echo "$0: cannot create a file large enough for this test," 1>&2 + echo "$0: possibly because this system doesn't support large files;" 1>&2 + echo "$0: Consider rerunning this test on a different file system." 1>&2 + (exit 77); exit 77 fi if test $framework_failure = 1; then |