]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
don't run 122 if required headers aren't found
authorEric Sandeen <sandeen@sandeen.net>
Wed, 3 Jun 2009 18:12:20 +0000 (13:12 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 3 Jun 2009 18:12:20 +0000 (13:12 -0500)
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@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
122

diff --git a/122 b/122
index 71237530218ff6930d37a84e46a46ccb1d8bd94e..9fbe437f8e08b930444c023532b9af820488650e 100755 (executable)
--- 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
 
 #