For tests using fork, if the test fails exit() is called, which results
in the duration not being recorded for the test.
no-fork mode instead requires all tests to return, meaning their
duration is always recorded.
The test_xml_output.sh test expected that all failed tests have a negative
duration, which is not the case for no-fork mode. Removing
this expectation, and instead forcing all durations to be >=0 for
no-fork mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@785
64e312b2-a51f-0410-8e61-
82d0ca0eb02a
* Check compiles for the Windows using MinGW-w64.
-* The following unit tests now pass for MinGW-w64 builds when run
- against wine 1.4:
- - check_check_export
- - test_output.sh
- - test_check_nofork.sh
- - test_log_output.sh
+* All unit tests except check_check now pass on MinGW-w64 builds tested
+ against wine 1.4.
* On systems without timer_settimer, use setitimer (if available) to get
subsecond unit test timeouts. If setitimer is unavailable, fallback
</suite>
</testsuites>"
expected_duration_count=9
+
+# for fork tests, failures result in exit() being called, which prevents
+# a duration from being sent. This means that every failure results in
+# a -1 for duration, as no duration is known.
expected_duration_error=5
else
expected_xml=`printf "<?xml version=\"1.0\"?>\r
</testsuites>\r
"`
expected_duration_count=8
-expected_duration_error=4
+
+# For no-fork mode, all tests 'finish' and do not call exit(). This means
+# that all tests will have a duration >= 0.
+expected_duration_error=0
fi
./ex_xml_output${EXEEXT} > /dev/null