xfs
[Top] [All Lists]

[PATCH] xfstests: don't run 122 if required headers aren't found

To: xfs mailing list <xfs@xxxxxxxxxxx>
Subject: [PATCH] xfstests: don't run 122 if required headers aren't found
From: Eric Sandeen <sandeen@xxxxxxxxxx>
Date: Wed, 03 Jun 2009 12:17:10 -0500
User-agent: Thunderbird 2.0.0.21 (X11/20090320)
Now that libxfs etc is optional, 122 (which compiles on the fly)
is failing if those extra headers are missing.

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

diff --git a/122 b/122
index 7123753..9fbe437 100755
--- a/122
+++ b/122
@@ -191,7 +191,8 @@ awk '
 echo 'return 0; }' >>$cprog
 
 # create and run program
-cc -o $oprog $cprog
+cc -o $oprog $cprog >> $seq.full 2>&1 || \
+  _notrun "Could not compile test program (see end of $seq.full)"
 $oprog | _type_size_filter > $progout
 
 #

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