Skip to content

Commit

Permalink
Merge pull request CxxTest#96 from yazug/defensive_guard_for_ts_skip
Browse files Browse the repository at this point in the history
Defensive guard for const char * expression in skippedTest
  • Loading branch information
whart222 committed Feb 23, 2014
2 parents b866882 + d438da3 commit 451fe45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cxxtest/ErrorFormatter.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,9 @@ class ErrorFormatter : public TestListener

void skippedTest(const char *file, int line, const char *expression)
{
stop(file, line) << _warningString << ": Test skipped: " <<
expression << endl;
if(expression && strlen(expression) > 0)
stop(file, line) << _warningString << ": Test skipped: " <<
expression << endl;
}

void failedTest(const char *file, int line, const char *expression)
Expand Down

0 comments on commit 451fe45

Please sign in to comment.