Commit a1f89529 authored by Ian Craggs's avatar Ian Craggs

Correct XML report format in test1.c

parent 6d400792
...@@ -376,7 +376,7 @@ exit: ...@@ -376,7 +376,7 @@ exit:
MyLog(LOGA_INFO, "TEST1: test %s. %d tests run, %d failures.", MyLog(LOGA_INFO, "TEST1: test %s. %d tests run, %d failures.",
(failures == 0) ? "passed" : "failed", tests, failures); (failures == 0) ? "passed" : "failed", tests, failures);
fprintf(xml, " time=\"%d\" />\n", elapsed(global_start_time)); fprintf(xml, " time=\"%d\" >\n", elapsed(global_start_time));
if (cur_output != output) if (cur_output != output)
{ {
fprintf(xml, output); fprintf(xml, output);
...@@ -539,7 +539,7 @@ exit: ...@@ -539,7 +539,7 @@ exit:
MyLog(LOGA_INFO, "%s: test %s. %d tests run, %d failures.", MyLog(LOGA_INFO, "%s: test %s. %d tests run, %d failures.",
(failures == 0) ? "passed" : "failed", testname, tests, failures); (failures == 0) ? "passed" : "failed", testname, tests, failures);
fprintf(xml, " time=\"%d\" />\n", elapsed(global_start_time)); fprintf(xml, " time=\"%d\" >\n", elapsed(global_start_time));
if (cur_output != output) if (cur_output != output)
{ {
fprintf(xml, output); fprintf(xml, output);
...@@ -626,7 +626,7 @@ int test3(struct Options options) ...@@ -626,7 +626,7 @@ int test3(struct Options options)
MyLog(LOGA_INFO, "%s: test %s. %d tests run, %d failures.", MyLog(LOGA_INFO, "%s: test %s. %d tests run, %d failures.",
(failures == 0) ? "passed" : "failed", testname, tests, failures); (failures == 0) ? "passed" : "failed", testname, tests, failures);
fprintf(xml, " time=\"%d\" />\n", elapsed(global_start_time)); fprintf(xml, " time=\"%d\" >\n", elapsed(global_start_time));
if (cur_output != output) if (cur_output != output)
{ {
fprintf(xml, output); fprintf(xml, output);
...@@ -793,7 +793,7 @@ int test4(struct Options options) ...@@ -793,7 +793,7 @@ int test4(struct Options options)
fprintf(xml, "<testcase classname=\"test1\" name=\"persistence\""); fprintf(xml, "<testcase classname=\"test1\" name=\"persistence\"");
global_start_time = start_clock(); global_start_time = start_clock();
rc = test4_run(1) + test4_run(2); rc = test4_run(1) + test4_run(2);
fprintf(xml, " time=\"%d\" />\n", elapsed(global_start_time)); fprintf(xml, " time=\"%d\" >\n", elapsed(global_start_time));
if (cur_output != output) if (cur_output != output)
{ {
fprintf(xml, output); fprintf(xml, output);
...@@ -874,7 +874,7 @@ exit: ...@@ -874,7 +874,7 @@ exit:
MyLog(LOGA_INFO, "%s: test %s. %d tests run, %d failures.", MyLog(LOGA_INFO, "%s: test %s. %d tests run, %d failures.",
(failures == 0) ? "passed" : "failed", testname, tests, failures); (failures == 0) ? "passed" : "failed", testname, tests, failures);
fprintf(xml, " time=\"%d\" />\n", elapsed(global_start_time)); fprintf(xml, " time=\"%d\" >\n", elapsed(global_start_time));
if (cur_output != output) if (cur_output != output)
{ {
fprintf(xml, output); fprintf(xml, output);
...@@ -1112,7 +1112,7 @@ exit: ...@@ -1112,7 +1112,7 @@ exit:
MyLog(LOGA_INFO, "%s: test %s. %d tests run, %d failures.\n", MyLog(LOGA_INFO, "%s: test %s. %d tests run, %d failures.\n",
(failures == 0) ? "passed" : "failed", testname, tests, failures); (failures == 0) ? "passed" : "failed", testname, tests, failures);
fprintf(xml, " time=\"%d\" />\n", elapsed(global_start_time)); fprintf(xml, " time=\"%d\" >\n", elapsed(global_start_time));
if (cur_output != output) if (cur_output != output)
{ {
fprintf(xml, output); fprintf(xml, output);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment