From 3bae0de0e4d7a3c9134df8d10fb1013fa2c267d1 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 12 Nov 2011 18:20:12 -0500 Subject: Fix error recognition. POSIX.1-2008 specifies that make will return >1 on error. --- diff --git a/testbuild b/testbuild index d2857fb..972f117 100755 --- a/testbuild +++ b/testbuild @@ -63,19 +63,26 @@ errors=false output="${output} \$ make clean" output="${output} -`make clean > /dev/null } 2>&1`" || errors=true +`make clean > /dev/null } 2>&1`" +[ $? -gt 1 ] && errors=true + output="${output} \$ make" output="${output} -`make 2>&1`" || errors=true +`make 2>&1`" +[ $? -gt 1 ] && errors=true + output="${output} \$ make clean" output="${output} -`make clean 2>&1`" || errors=true +`make clean 2>&1`" +[ $? -gt 1 ] && errors=true + output="${output} \$ make debug" output="${output} -`make debug 2>&1`" || errors=true +`make debug 2>&1`" +[ $? -gt 1 ] && errors=true if ${errors}; then printf '%s' "${output}" | -- cgit v0.9.1