xfs
[Top] [All Lists]

[PATCH] xfstests: only run 197 on 32-bit machines

To: xfs-oss <xfs@xxxxxxxxxxx>
Subject: [PATCH] xfstests: only run 197 on 32-bit machines
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Wed, 14 Jan 2009 20:08:04 -0600
Cc: Christoph Hellwig <hch@xxxxxxxxxxxxx>
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)
Don't run test 197 on 64-bit machines

If it always passes on 64 bits, this gives a false
sense of security.  Make it obvious.

Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxxx>
--

diff --git a/197 b/197
index 4c81941..f77bfa2 100644
--- a/197
+++ b/197
@@ -37,6 +37,10 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 _supported_fs xfs
 _supported_os Linux
 
+bitsperlong=`src/feature -w`
+if [ "$bitsperlong" -ne 32 ]; then
+       _notrun "This test is only valid on 32 bit machines"
+fi
 
 mkdir $TEST_DIR/ttt
 for n in {1..168}; do


<Prev in Thread] Current Thread [Next in Thread>