xfstests: update test 250 and its golden output
authorAlex Elder <aelder@sgi.com>
Wed, 13 Jul 2011 20:28:48 +0000 (20:28 +0000)
committerAlex Elder <aelder@sgi.com>
Thu, 14 Jul 2011 16:05:25 +0000 (11:05 -0500)
Test 250 actually runs now that it has golden output defined.  The
output the test produces doesn't match the golden output, however.

The main reason seems to be a oversight in the test--the stderr
output of mkfs wasn't being ignored as it should be (likely for
debugging).  Remove the comment character so the stderr does get
ignored.

Doing this still leaves some other output, but since it's filtered
there's no reason to leave it out of the golden output.  So add
the expected result of filtering into the golden output file.

Finally, this test--unlike almost all of the others--specifies the
value of its "tmp" variable as a relative rather than absolute
path.  I'm sure that works in some places, but it produces errors
for me.  Follow the "tmp=/tmp/$$" convention used elsewhere.

Signed-off-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
250
250.out

diff --git a/250 b/250
index cb0fa9c9b22bc6ba0b637d6f82f477939bacd239..92e3cc5f21de27c414ee43b2c29237a7c7617e6b 100755 (executable)
--- a/250
+++ b/250
@@ -27,7 +27,7 @@ seq=`basename $0`
 echo "QA output created by $seq"
 
 here=`pwd`
-tmp=tmp/$$
+tmp=/tmp/$$
 status=1  # failure is the default!
 trap "_cleanup; exit \$status" 0 1 2 3 15
 
@@ -76,7 +76,7 @@ _test_loop()
 
        echo "*** mkfs loop file (size=$size)"
        $MKFS_XFS_PROG -d $dparam \
-               | _filter_mkfs 2>/dev/null
+               | _filter_mkfs 2>/dev/null
 
        echo "*** mount loop filesystem"
        mount -t xfs -o loop $LOOP_DEV $LOOP_MNT
diff --git a/250.out b/250.out
index 79f19a404817af189765ba7d9ae96a7bff4da1c3..2225d6ed79689bc97f2273ba91f3f7e83d208148 100644 (file)
--- a/250.out
+++ b/250.out
@@ -1,6 +1,12 @@
 QA output created by 250
 *** create loop mount point
 *** mkfs loop file (size=50g)
+meta-data=DDEV isize=XXX agcount=N, agsize=XXX blks
+data     = bsize=XXX blocks=XXX, imaxpct=PCT
+         = sunit=XXX swidth=XXX, unwritten=X
+naming   =VERN bsize=XXX
+log      =LDEV bsize=XXX blocks=XXX
+realtime =RDEV extsz=XXX blocks=XXX, rtextents=XXX
 *** mount loop filesystem
 *** preallocate large file
 *** unmount loop filesystem