]> rtime.felk.cvut.cz Git - omk.git/blobdiff - tests/programs-cflags
Fix a few tests to work correctly with rtems rules
[omk.git] / tests / programs-cflags
index 96faf2192c28453a38be342d09d239a31ceefb92..90960ec9e96a17e67ccdf7efe1678945817e2580 100755 (executable)
@@ -4,6 +4,9 @@
 
 touch config.omk-default
 echo "CFLAGS=-DNUMBER=123" > config.omk
+needs_valid_CC
 make||error "Can't compile"
-[ $OMK_RULES != linux ] && canttest "Should work only with Linux rules"
-_compiled/bin/test|grep 123 || error "Custom CFLAGS didn't influence the output"
+if [ $OMK_RULES = linux ]; then
+    # The following should work only with Linux rules
+    _compiled/bin/test|grep 123 || error "Custom CFLAGS didn't influence the output"
+fi