Skip to content

Commit

Permalink
Issue #265 - Harmonize success message of tests (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoavnir authored Oct 12, 2024
1 parent 845aa54 commit b3ab532
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion specs/src/test/ProcessingTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ int main(int argc, char** argv)
}
std::cout << "\n";
} else {
std::cout << "\nAll tests passed.\n";
std::cout << "\n*** All tests passed.\n";
}

return (errorCount==0) ? 0 : 4;
Expand Down
2 changes: 1 addition & 1 deletion specs/src/test/TokenTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ int main(int argc, char** argv)
if (failedTests) {
std::cout << "\n" << failedTests << " failed tests.\n";
} else {
std::cout << "\nAll tests passed.\n";
std::cout << "\n*** All tests passed.\n";
}

return (failedTests==0) ? 0 : 4;
Expand Down
7 changes: 6 additions & 1 deletion specs/tests/valgrind_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ def run_case(spec, input, description, expected_rc=memcheck.RetCode_SUCCESS, con
sys.stdout.write("Failed. RC={}; info={}; expected: {}\n".format(memcheck.RetCode_strings[rc],info,memcheck.RetCode_strings[expected_rc]))
exit(4)
else:
sys.stdout.write("No leaks\n")
if memcheck.no_valgrind:
sys.stdout.write("valgrind skipped\n")
else:
sys.stdout.write("No leaks\n")

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


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

0 comments on commit b3ab532

Please sign in to comment.