From: Jim Meyering Date: Thu, 10 Apr 2003 08:36:41 +0000 (+0000) Subject: Skip this test (don't fail) if creating a file with nominal length > 4GB fails. X-Git-Tag: v5.0.1~768 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ab828ae6a1005172f104cdc89589d5091c4f060f;p=thirdparty%2Fcoreutils.git Skip this test (don't fail) if creating a file with nominal length > 4GB fails. --- diff --git a/tests/tail-2/big-4gb b/tests/tail-2/big-4gb index 61f1720cf3..9b53f79896 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