Skip to content

Commit 33f56eb

Browse files
PKEuSaggro80
authored andcommitted
Bugfix for recent testrunner output improvement. Some output was not
formatted well.
1 parent 4da702e commit 33f56eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/testsuite.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ void TestFixture::assert_(const char *filename, int linenr, bool condition)
116116
if (gcc_style_errors) {
117117
errmsg << filename << ':' << linenr << ": Assertion failed." << std::endl;
118118
} else {
119-
errmsg << "_____" << std::endl << "Assertion failed in " << filename << " at line " << linenr << std::endl;
119+
errmsg << "Assertion failed in " << filename << " at line " << linenr << std::endl << "_____" << std::endl;
120120
}
121121
}
122122
}
@@ -200,8 +200,8 @@ void TestFixture::assertThrowFail(const char *filename, int linenr)
200200
errmsg << filename << ':' << linenr << " Assertion failed. "
201201
<< "The expected exception was not thrown" << std::endl;
202202
} else {
203-
errmsg << "_____" << std::endl << "Assertion failed in " << filename << " at line " << linenr << std::endl
204-
<< "The expected exception was not thrown" << std::endl;
203+
errmsg << "Assertion failed in " << filename << " at line " << linenr << std::endl
204+
<< "The expected exception was not thrown" << std::endl << "_____" << std::endl;
205205
}
206206
}
207207

0 commit comments

Comments
 (0)