]> rtime.felk.cvut.cz Git - omk.git/blobdiff - tests/programs-defs
Fix a few tests to work correctly with rtems rules
[omk.git] / tests / programs-defs
index cb28daaed469f3715b858c1c0fef155bd80d1f8f..3da2882abeefbdb1980e3a66f3d36aff4dbd4460 100755 (executable)
@@ -6,5 +6,7 @@ touch config.omk-default
 echo "DEFS=-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 "Variable DEFS didn't influence the output"
+if [ $OMK_RULES = linux ]; then
+    # The following should work only with Linux rules
+    _compiled/bin/test|grep 123 || error "Variable DEFS didn't influence the output"
+fi