poldek: poldek/tests/sh/lib/shunit2 - count test* functions as tests

mis mis at pld-linux.org
Sat Jun 23 20:29:01 CEST 2007


Author: mis                          Date: Sat Jun 23 18:29:01 2007 GMT
Module: poldek                        Tag: HEAD
---- Log message:
- count test* functions as tests

---- Files affected:
poldek/poldek/tests/sh/lib:
   shunit2 (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: poldek/poldek/tests/sh/lib/shunit2
diff -u poldek/poldek/tests/sh/lib/shunit2:1.1 poldek/poldek/tests/sh/lib/shunit2:1.2
--- poldek/poldek/tests/sh/lib/shunit2:1.1	Sat Jun 23 17:25:21 2007
+++ poldek/poldek/tests/sh/lib/shunit2	Sat Jun 23 20:28:56 2007
@@ -708,6 +708,11 @@
     # execute the test
     echo "${_su_func}"
     eval ${_su_func}
+    if [ $? -eq 0 ]; then 
+        _shunit_testPassed
+    else
+        _shunit_testFailed
+    fi     
 
     # execute the per-test tear-down function
     tearDown
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/poldek/poldek/tests/sh/lib/shunit2?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list