3 # 16.07.2006 Volker Quetschke
4 # Check that dmake warns if a previously unset macro (i.e. it is
5 # assumed to be empty) is used and later set to a different value.
12 trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15
14 # Remove files from prior failed run
17 # Remember to quote variables in generated makefiles( $ -> \$ ).
18 # Check that we issue a warning.
29 output1
=`eval ${DMAKEPROG} -rf $file1 2>&1 `
32 if echo $output1 |
grep 'Warning: -- Macro .* redefined after use' > /dev
/null
2>&1 ; then
36 echo "Test 1: Wrong result: $output1"
41 if test $result1 -eq 0 ; then
42 echo "Success - Cleaning up"
46 echo "Failure! dmake failed to issue a warning."