Skip to content

Commit dc8b451

Browse files
committed
Issue #265 - Harmonize success message of tests (#266)
1 parent 387207a commit dc8b451

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

specs/src/test/ProcessingTest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ int main(int argc, char** argv)
749749
}
750750
std::cout << "\n";
751751
} else {
752-
std::cout << "\nAll tests passed.\n";
752+
std::cout << "\n*** All tests passed.\n";
753753
}
754754

755755
return (errorCount==0) ? 0 : 4;

specs/src/test/TokenTest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ int main(int argc, char** argv)
9696
if (failedTests) {
9797
std::cout << "\n" << failedTests << " failed tests.\n";
9898
} else {
99-
std::cout << "\nAll tests passed.\n";
99+
std::cout << "\n*** All tests passed.\n";
100100
}
101101

102102
return (failedTests==0) ? 0 : 4;

specs/tests/valgrind_specs.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ def run_case(spec, input, description, expected_rc=memcheck.RetCode_SUCCESS, con
1515
sys.stdout.write("Failed. RC={}; info={}; expected: {}\n".format(memcheck.RetCode_strings[rc],info,memcheck.RetCode_strings[expected_rc]))
1616
exit(4)
1717
else:
18-
sys.stdout.write("No leaks\n")
18+
if memcheck.no_valgrind:
19+
sys.stdout.write("valgrind skipped\n")
20+
else:
21+
sys.stdout.write("No leaks\n")
1922

2023
# Parse the one command line options
2124
parser = argparse.ArgumentParser()
@@ -735,3 +738,5 @@ def run_case(spec, input, description, expected_rc=memcheck.RetCode_SUCCESS, con
735738
"""
736739
run_case(s,i,"inline variable")
737740

741+
742+
sys.stdout.write("\n*** All tests passed.\n")

0 commit comments

Comments
 (0)