From 543846c64e7103e6d02a08aae0675eb70fc57b22 Mon Sep 17 00:00:00 2001 From: brarcher Date: Mon, 27 Jan 2014 03:18:32 +0000 Subject: [PATCH] move all expected output strings to a common file The test_output.sh script will eventually need strings from the logging types. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1079 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- tests/test_log_output.sh | 40 +---- tests/test_output.sh | 108 +------------ tests/test_output_strings | 327 ++++++++++++++++++++++++++++++++++++++ tests/test_tap_output.sh | 40 +---- tests/test_xml_output.sh | 138 +--------------- 5 files changed, 336 insertions(+), 317 deletions(-) create mode 100644 tests/test_output_strings diff --git a/tests/test_log_output.sh b/tests/test_log_output.sh index 3b4bc3e..1a1dd04 100755 --- a/tests/test_log_output.sh +++ b/tests/test_log_output.sh @@ -3,41 +3,13 @@ OUTPUT_FILE=test.log . ./test_vars - -if [ $HAVE_FORK -eq 1 ]; then -expected="Running suite S1 -${SRCDIR}ex_output.c:11:P:Core:test_pass:0: Passed -${SRCDIR}ex_output.c:17:F:Core:test_fail:0: Failure -${SRCDIR}ex_output.c:26:E:Core:test_exit:0: (after this point) Early exit with return value 1 -Running suite S2 -${SRCDIR}ex_output.c:46:P:Core:test_pass2:0: Passed -${SRCDIR}ex_output.c:52:F:Core:test_loop:0: Iteration 0 failed -${SRCDIR}ex_output.c:52:P:Core:test_loop:1: Passed -${SRCDIR}ex_output.c:52:F:Core:test_loop:2: Iteration 2 failed -Running suite XML escape \" ' < > & tests -${SRCDIR}ex_output.c:58:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message -Results for all suites run: -37%: Checks: 8, Failures: 4, Errors: 1" -else -expected="Running suite S1 -${SRCDIR}ex_output.c:11:P:Core:test_pass:0: Passed -${SRCDIR}ex_output.c:17:F:Core:test_fail:0: Failure -Running suite S2 -${SRCDIR}ex_output.c:46:P:Core:test_pass2:0: Passed -${SRCDIR}ex_output.c:52:F:Core:test_loop:0: Iteration 0 failed -${SRCDIR}ex_output.c:52:P:Core:test_loop:1: Passed -${SRCDIR}ex_output.c:52:F:Core:test_loop:2: Iteration 2 failed -Running suite XML escape \" ' < > & tests -${SRCDIR}ex_output.c:58:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message -Results for all suites run: -42%: Checks: 7, Failures: 4, Errors: 0" -fi +. ./test_output_strings test_log_output ( ) { rm -f ${OUTPUT_FILE} ./ex_output${EXEEXT} "${1}" "LOG" "NORMAL" > /dev/null actual=`cat ${OUTPUT_FILE} | tr -d "\r"` - if [ x"${expected}" != x"${actual}" ]; then + if [ x"${2}" != x"${actual}" ]; then echo "Problem with ex_log_output${EXEEXT} ${1} LOG NORMAL"; echo "Expected:"; echo "${expected}"; @@ -48,8 +20,8 @@ test_log_output ( ) { } -test_log_output "CK_SILENT"; -test_log_output "CK_MINIMAL"; -test_log_output "CK_NORMAL"; -test_log_output "CK_VERBOSE"; +test_log_output "CK_SILENT" "${expected_log_log}" +test_log_output "CK_MINIMAL" "${expected_log_log}" +test_log_output "CK_NORMAL" "${expected_log_log}" +test_log_output "CK_VERBOSE" "${expected_log_log}" exit 0 diff --git a/tests/test_output.sh b/tests/test_output.sh index 75c205e..2827561 100755 --- a/tests/test_output.sh +++ b/tests/test_output.sh @@ -1,113 +1,7 @@ #!/bin/sh . ./test_vars - -suite_output="Running suite(s): S1 - S2 - XML escape \" ' < > & tests" - -exp_silent="" - -if [ $HAVE_FORK -eq 1 ]; then -exp_minimal_result="37%: Checks: 8, Failures: 4, Errors: 1" -else -exp_minimal_result="42%: Checks: 7, Failures: 4, Errors: 0" -fi -exp_minimal="$suite_output -$exp_minimal_result" - -if [ $HAVE_FORK -eq 1 ]; then -exp_normal_result="37%: Checks: 8, Failures: 4, Errors: 1 -${SRCDIR}ex_output.c:17:F:Core:test_fail:0: Failure -${SRCDIR}ex_output.c:26:E:Core:test_exit:0: (after this point) Early exit with return value 1 -${SRCDIR}ex_output.c:52:F:Core:test_loop:0: Iteration 0 failed -${SRCDIR}ex_output.c:52:F:Core:test_loop:2: Iteration 2 failed -${SRCDIR}ex_output.c:58:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message" -else -exp_normal_result="42%: Checks: 7, Failures: 4, Errors: 0 -${SRCDIR}ex_output.c:17:F:Core:test_fail:0: Failure -${SRCDIR}ex_output.c:52:F:Core:test_loop:0: Iteration 0 failed -${SRCDIR}ex_output.c:52:F:Core:test_loop:2: Iteration 2 failed -${SRCDIR}ex_output.c:58:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message" -fi -exp_normal="$suite_output -$exp_normal_result" - - -if [ $HAVE_FORK -eq 1 ]; then -exp_verbose_result="37%: Checks: 8, Failures: 4, Errors: 1 -${SRCDIR}ex_output.c:11:P:Core:test_pass:0: Passed -${SRCDIR}ex_output.c:17:F:Core:test_fail:0: Failure -${SRCDIR}ex_output.c:26:E:Core:test_exit:0: (after this point) Early exit with return value 1 -${SRCDIR}ex_output.c:46:P:Core:test_pass2:0: Passed -${SRCDIR}ex_output.c:52:F:Core:test_loop:0: Iteration 0 failed -${SRCDIR}ex_output.c:52:P:Core:test_loop:1: Passed -${SRCDIR}ex_output.c:52:F:Core:test_loop:2: Iteration 2 failed -${SRCDIR}ex_output.c:58:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message" -else -exp_verbose_result="42%: Checks: 7, Failures: 4, Errors: 0 -${SRCDIR}ex_output.c:11:P:Core:test_pass:0: Passed -${SRCDIR}ex_output.c:17:F:Core:test_fail:0: Failure -${SRCDIR}ex_output.c:46:P:Core:test_pass2:0: Passed -${SRCDIR}ex_output.c:52:F:Core:test_loop:0: Iteration 0 failed -${SRCDIR}ex_output.c:52:P:Core:test_loop:1: Passed -${SRCDIR}ex_output.c:52:F:Core:test_loop:2: Iteration 2 failed -${SRCDIR}ex_output.c:58:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message" -fi -exp_verbose="$suite_output -$exp_verbose_result" - -if [ $HAVE_FORK -eq 1 ]; then -exp_subunit="test: Core:test_pass -success: Core:test_pass -test: Core:test_fail -failure: Core:test_fail [ -${SRCDIR}ex_output.c:17: Failure -] -test: Core:test_exit -error: Core:test_exit [ -${SRCDIR}ex_output.c:26: (after this point) Early exit with return value 1 -] -test: Core:test_pass2 -success: Core:test_pass2 -test: Core:test_loop -failure: Core:test_loop [ -${SRCDIR}ex_output.c:52: Iteration 0 failed -] -test: Core:test_loop -success: Core:test_loop -test: Core:test_loop -failure: Core:test_loop [ -${SRCDIR}ex_output.c:52: Iteration 2 failed -] -test: description \" ' < > &:test_xml_esc_fail_msg -failure: description \" ' < > &:test_xml_esc_fail_msg [ -${SRCDIR}ex_output.c:58: fail \" ' < > & message -]" -else -exp_subunit="test: Core:test_pass -success: Core:test_pass -test: Core:test_fail -failure: Core:test_fail [ -${SRCDIR}ex_output.c:17: Failure -] -test: Core:test_pass2 -success: Core:test_pass2 -test: Core:test_loop -failure: Core:test_loop [ -${SRCDIR}ex_output.c:52: Iteration 0 failed -] -test: Core:test_loop -success: Core:test_loop -test: Core:test_loop -failure: Core:test_loop [ -${SRCDIR}ex_output.c:52: Iteration 2 failed -] -test: description \" ' < > &:test_xml_esc_fail_msg -failure: description \" ' < > &:test_xml_esc_fail_msg [ -${SRCDIR}ex_output.c:58: fail \" ' < > & message -]" -fi +. ./test_output_strings # When the ex_output program is run with the STDOUT_DUMP mode, it will # run with the normal output mode, then dump each output mode using diff --git a/tests/test_output_strings b/tests/test_output_strings new file mode 100644 index 0000000..329615a --- /dev/null +++ b/tests/test_output_strings @@ -0,0 +1,327 @@ +#!/bin/sh + +. ./test_vars + +################## +# stdout output +################## +suite_output="Running suite(s): S1 + S2 + XML escape \" ' < > & tests" + +exp_silent="" + +if [ $HAVE_FORK -eq 1 ]; then +exp_minimal_result="37%: Checks: 8, Failures: 4, Errors: 1" +else +exp_minimal_result="42%: Checks: 7, Failures: 4, Errors: 0" +fi +exp_minimal="$suite_output +$exp_minimal_result" + +if [ $HAVE_FORK -eq 1 ]; then +exp_normal_result="37%: Checks: 8, Failures: 4, Errors: 1 +${SRCDIR}ex_output.c:17:F:Core:test_fail:0: Failure +${SRCDIR}ex_output.c:26:E:Core:test_exit:0: (after this point) Early exit with return value 1 +${SRCDIR}ex_output.c:52:F:Core:test_loop:0: Iteration 0 failed +${SRCDIR}ex_output.c:52:F:Core:test_loop:2: Iteration 2 failed +${SRCDIR}ex_output.c:58:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message" +else +exp_normal_result="42%: Checks: 7, Failures: 4, Errors: 0 +${SRCDIR}ex_output.c:17:F:Core:test_fail:0: Failure +${SRCDIR}ex_output.c:52:F:Core:test_loop:0: Iteration 0 failed +${SRCDIR}ex_output.c:52:F:Core:test_loop:2: Iteration 2 failed +${SRCDIR}ex_output.c:58:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message" +fi +exp_normal="$suite_output +$exp_normal_result" + + +if [ $HAVE_FORK -eq 1 ]; then +exp_verbose_result="37%: Checks: 8, Failures: 4, Errors: 1 +${SRCDIR}ex_output.c:11:P:Core:test_pass:0: Passed +${SRCDIR}ex_output.c:17:F:Core:test_fail:0: Failure +${SRCDIR}ex_output.c:26:E:Core:test_exit:0: (after this point) Early exit with return value 1 +${SRCDIR}ex_output.c:46:P:Core:test_pass2:0: Passed +${SRCDIR}ex_output.c:52:F:Core:test_loop:0: Iteration 0 failed +${SRCDIR}ex_output.c:52:P:Core:test_loop:1: Passed +${SRCDIR}ex_output.c:52:F:Core:test_loop:2: Iteration 2 failed +${SRCDIR}ex_output.c:58:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message" +else +exp_verbose_result="42%: Checks: 7, Failures: 4, Errors: 0 +${SRCDIR}ex_output.c:11:P:Core:test_pass:0: Passed +${SRCDIR}ex_output.c:17:F:Core:test_fail:0: Failure +${SRCDIR}ex_output.c:46:P:Core:test_pass2:0: Passed +${SRCDIR}ex_output.c:52:F:Core:test_loop:0: Iteration 0 failed +${SRCDIR}ex_output.c:52:P:Core:test_loop:1: Passed +${SRCDIR}ex_output.c:52:F:Core:test_loop:2: Iteration 2 failed +${SRCDIR}ex_output.c:58:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message" +fi +exp_verbose="$suite_output +$exp_verbose_result" + +if [ $HAVE_FORK -eq 1 ]; then +exp_subunit="test: Core:test_pass +success: Core:test_pass +test: Core:test_fail +failure: Core:test_fail [ +${SRCDIR}ex_output.c:17: Failure +] +test: Core:test_exit +error: Core:test_exit [ +${SRCDIR}ex_output.c:26: (after this point) Early exit with return value 1 +] +test: Core:test_pass2 +success: Core:test_pass2 +test: Core:test_loop +failure: Core:test_loop [ +${SRCDIR}ex_output.c:52: Iteration 0 failed +] +test: Core:test_loop +success: Core:test_loop +test: Core:test_loop +failure: Core:test_loop [ +${SRCDIR}ex_output.c:52: Iteration 2 failed +] +test: description \" ' < > &:test_xml_esc_fail_msg +failure: description \" ' < > &:test_xml_esc_fail_msg [ +${SRCDIR}ex_output.c:58: fail \" ' < > & message +]" +else +exp_subunit="test: Core:test_pass +success: Core:test_pass +test: Core:test_fail +failure: Core:test_fail [ +${SRCDIR}ex_output.c:17: Failure +] +test: Core:test_pass2 +success: Core:test_pass2 +test: Core:test_loop +failure: Core:test_loop [ +${SRCDIR}ex_output.c:52: Iteration 0 failed +] +test: Core:test_loop +success: Core:test_loop +test: Core:test_loop +failure: Core:test_loop [ +${SRCDIR}ex_output.c:52: Iteration 2 failed +] +test: description \" ' < > &:test_xml_esc_fail_msg +failure: description \" ' < > &:test_xml_esc_fail_msg [ +${SRCDIR}ex_output.c:58: fail \" ' < > & message +]" +fi + +################## +# log output +################## +if [ $HAVE_FORK -eq 1 ]; then +expected_log_log="Running suite S1 +${SRCDIR}ex_output.c:11:P:Core:test_pass:0: Passed +${SRCDIR}ex_output.c:17:F:Core:test_fail:0: Failure +${SRCDIR}ex_output.c:26:E:Core:test_exit:0: (after this point) Early exit with return value 1 +Running suite S2 +${SRCDIR}ex_output.c:46:P:Core:test_pass2:0: Passed +${SRCDIR}ex_output.c:52:F:Core:test_loop:0: Iteration 0 failed +${SRCDIR}ex_output.c:52:P:Core:test_loop:1: Passed +${SRCDIR}ex_output.c:52:F:Core:test_loop:2: Iteration 2 failed +Running suite XML escape \" ' < > & tests +${SRCDIR}ex_output.c:58:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message +Results for all suites run: +37%: Checks: 8, Failures: 4, Errors: 1" +else +expected_log_log="Running suite S1 +${SRCDIR}ex_output.c:11:P:Core:test_pass:0: Passed +${SRCDIR}ex_output.c:17:F:Core:test_fail:0: Failure +Running suite S2 +${SRCDIR}ex_output.c:46:P:Core:test_pass2:0: Passed +${SRCDIR}ex_output.c:52:F:Core:test_loop:0: Iteration 0 failed +${SRCDIR}ex_output.c:52:P:Core:test_loop:1: Passed +${SRCDIR}ex_output.c:52:F:Core:test_loop:2: Iteration 2 failed +Running suite XML escape \" ' < > & tests +${SRCDIR}ex_output.c:58:F:description \" ' < > &:test_xml_esc_fail_msg:0: fail \" ' < > & message +Results for all suites run: +42%: Checks: 7, Failures: 4, Errors: 0" +fi + +################## +# xml output +################## +if [ $HAVE_FORK -eq 1 ]; then +expected_xml=" + + + + S1 + + ex_output.c:11 + test_pass + 0 + Core + Passed + + + ex_output.c:17 + test_fail + 0 + Core + Failure + + + ex_output.c:26 + test_exit + 0 + Core + Early exit with return value 1 + + + + S2 + + ex_output.c:46 + test_pass2 + 0 + Core + Passed + + + ex_output.c:52 + test_loop + 0 + Core + Iteration 0 failed + + + ex_output.c:52 + test_loop + 1 + Core + Passed + + + ex_output.c:52 + test_loop + 2 + Core + Iteration 2 failed + + + + XML escape " ' < > & tests + + ex_output.c:58 + test_xml_esc_fail_msg + 0 + description " ' < > & + fail " ' < > & message + + +" +expected_duration_count=9 +else +expected_xml=" + + + + S1 + + ex_output.c:11 + test_pass + 0 + Core + Passed + + + ex_output.c:17 + test_fail + 0 + Core + Failure + + + + S2 + + ex_output.c:46 + test_pass2 + 0 + Core + Passed + + + ex_output.c:52 + test_loop + 0 + Core + Iteration 0 failed + + + ex_output.c:52 + test_loop + 1 + Core + Passed + + + ex_output.c:52 + test_loop + 2 + Core + Iteration 2 failed + + + + XML escape " ' < > & tests + + ex_output.c:58 + test_xml_esc_fail_msg + 0 + description " ' < > & + fail " ' < > & message + + +" +expected_duration_count=8 +fi + +################## +# tap output +################## +if [ $HAVE_FORK -eq 1 ]; then +expected_normal_tap="ok 1 - ${SRCDIR}ex_output.c:Core:test_pass: Passed +not ok 2 - ${SRCDIR}ex_output.c:Core:test_fail: Failure +not ok 3 - ${SRCDIR}ex_output.c:Core:test_exit: Early exit with return value 1 +ok 4 - ${SRCDIR}ex_output.c:Core:test_pass2: Passed +not ok 5 - ${SRCDIR}ex_output.c:Core:test_loop: Iteration 0 failed +ok 6 - ${SRCDIR}ex_output.c:Core:test_loop: Passed +not ok 7 - ${SRCDIR}ex_output.c:Core:test_loop: Iteration 2 failed +not ok 8 - ${SRCDIR}ex_output.c:description \" ' < > &:test_xml_esc_fail_msg: fail \" ' < > & message +1..8" +expected_aborted_tap="ok 1 - ${SRCDIR}ex_output.c:Core:test_pass: Passed +not ok 2 - ${SRCDIR}ex_output.c:Core:test_fail: Failure +not ok 3 - ${SRCDIR}ex_output.c:Core:test_exit: Early exit with return value 1 +not ok 4 - ${SRCDIR}ex_output.c:Core:test_abort: Early exit with return value 1 +ok 5 - ${SRCDIR}ex_output.c:Core:test_pass2: Passed +not ok 6 - ${SRCDIR}ex_output.c:Core:test_loop: Iteration 0 failed +ok 7 - ${SRCDIR}ex_output.c:Core:test_loop: Passed +not ok 8 - ${SRCDIR}ex_output.c:Core:test_loop: Iteration 2 failed +not ok 9 - ${SRCDIR}ex_output.c:description \" ' < > &:test_xml_esc_fail_msg: fail \" ' < > & message +1..9" +else +expected_normal_tap="ok 1 - ${SRCDIR}ex_output.c:Core:test_pass: Passed +not ok 2 - ${SRCDIR}ex_output.c:Core:test_fail: Failure +ok 3 - ${SRCDIR}ex_output.c:Core:test_pass2: Passed +not ok 4 - ${SRCDIR}ex_output.c:Core:test_loop: Iteration 0 failed +ok 5 - ${SRCDIR}ex_output.c:Core:test_loop: Passed +not ok 6 - ${SRCDIR}ex_output.c:Core:test_loop: Iteration 2 failed +not ok 7 - ${SRCDIR}ex_output.c:description \" ' < > &:test_xml_esc_fail_msg: fail \" ' < > & message +1..7" +# When fork() is unavailable, one of the tests +# will invoke exit() which will terminate the +# unit testing program. In that case, the tap +# results will be incomplete, but the required +# test plan will be missing, signaling that +# something bad happened. +expected_aborted_tap="ok 1 - ${SRCDIR}ex_output.c:Core:test_pass: Passed +not ok 2 - ${SRCDIR}ex_output.c:Core:test_fail: Failure" +fi diff --git a/tests/test_tap_output.sh b/tests/test_tap_output.sh index a671022..6805915 100755 --- a/tests/test_tap_output.sh +++ b/tests/test_tap_output.sh @@ -3,45 +3,7 @@ OUTPUT_FILE=test.tap . ./test_vars - -if [ $HAVE_FORK -eq 1 ]; then -expected_normal_tap="ok 1 - ${SRCDIR}ex_output.c:Core:test_pass: Passed -not ok 2 - ${SRCDIR}ex_output.c:Core:test_fail: Failure -not ok 3 - ${SRCDIR}ex_output.c:Core:test_exit: Early exit with return value 1 -ok 4 - ${SRCDIR}ex_output.c:Core:test_pass2: Passed -not ok 5 - ${SRCDIR}ex_output.c:Core:test_loop: Iteration 0 failed -ok 6 - ${SRCDIR}ex_output.c:Core:test_loop: Passed -not ok 7 - ${SRCDIR}ex_output.c:Core:test_loop: Iteration 2 failed -not ok 8 - ${SRCDIR}ex_output.c:description \" ' < > &:test_xml_esc_fail_msg: fail \" ' < > & message -1..8" -expected_aborted_tap="ok 1 - ${SRCDIR}ex_output.c:Core:test_pass: Passed -not ok 2 - ${SRCDIR}ex_output.c:Core:test_fail: Failure -not ok 3 - ${SRCDIR}ex_output.c:Core:test_exit: Early exit with return value 1 -not ok 4 - ${SRCDIR}ex_output.c:Core:test_abort: Early exit with return value 1 -ok 5 - ${SRCDIR}ex_output.c:Core:test_pass2: Passed -not ok 6 - ${SRCDIR}ex_output.c:Core:test_loop: Iteration 0 failed -ok 7 - ${SRCDIR}ex_output.c:Core:test_loop: Passed -not ok 8 - ${SRCDIR}ex_output.c:Core:test_loop: Iteration 2 failed -not ok 9 - ${SRCDIR}ex_output.c:description \" ' < > &:test_xml_esc_fail_msg: fail \" ' < > & message -1..9" -else -expected_normal_tap="ok 1 - ${SRCDIR}ex_output.c:Core:test_pass: Passed -not ok 2 - ${SRCDIR}ex_output.c:Core:test_fail: Failure -ok 3 - ${SRCDIR}ex_output.c:Core:test_pass2: Passed -not ok 4 - ${SRCDIR}ex_output.c:Core:test_loop: Iteration 0 failed -ok 5 - ${SRCDIR}ex_output.c:Core:test_loop: Passed -not ok 6 - ${SRCDIR}ex_output.c:Core:test_loop: Iteration 2 failed -not ok 7 - ${SRCDIR}ex_output.c:description \" ' < > &:test_xml_esc_fail_msg: fail \" ' < > & message -1..7" -# When fork() is unavailable, one of the tests -# will invoke exit() which will terminate the -# unit testing program. In that case, the tap -# results will be incomplete, but the required -# test plan will be missing, signaling that -# something bad happened. -expected_aborted_tap="ok 1 - ${SRCDIR}ex_output.c:Core:test_pass: Passed -not ok 2 - ${SRCDIR}ex_output.c:Core:test_fail: Failure" -fi +. ./test_output_strings test_tap_output ( ) { rm -f ${OUTPUT_FILE} diff --git a/tests/test_xml_output.sh b/tests/test_xml_output.sh index bae4b87..fd5b710 100755 --- a/tests/test_xml_output.sh +++ b/tests/test_xml_output.sh @@ -4,143 +4,7 @@ OUTPUT_FILE=test.xml CK_DEFAULT_TIMEOUT=4 . ./test_vars - -if [ $HAVE_FORK -eq 1 ]; then -expected_xml=" - - - - S1 - - ex_output.c:11 - test_pass - 0 - Core - Passed - - - ex_output.c:17 - test_fail - 0 - Core - Failure - - - ex_output.c:26 - test_exit - 0 - Core - Early exit with return value 1 - - - - S2 - - ex_output.c:46 - test_pass2 - 0 - Core - Passed - - - ex_output.c:52 - test_loop - 0 - Core - Iteration 0 failed - - - ex_output.c:52 - test_loop - 1 - Core - Passed - - - ex_output.c:52 - test_loop - 2 - Core - Iteration 2 failed - - - - XML escape " ' < > & tests - - ex_output.c:58 - test_xml_esc_fail_msg - 0 - description " ' < > & - fail " ' < > & message - - -" -expected_duration_count=9 -else -expected_xml=" - - - - S1 - - ex_output.c:11 - test_pass - 0 - Core - Passed - - - ex_output.c:17 - test_fail - 0 - Core - Failure - - - - S2 - - ex_output.c:46 - test_pass2 - 0 - Core - Passed - - - ex_output.c:52 - test_loop - 0 - Core - Iteration 0 failed - - - ex_output.c:52 - test_loop - 1 - Core - Passed - - - ex_output.c:52 - test_loop - 2 - Core - Iteration 2 failed - - - - XML escape " ' < > & tests - - ex_output.c:58 - test_xml_esc_fail_msg - 0 - description " ' < > & - fail " ' < > & message - - -" -expected_duration_count=8 -fi +. ./test_output_strings rm -f ${OUTPUT_FILE} export CK_DEFAULT_TIMEOUT -- 2.49.0