according to C language lawyers, this construct is undefined. In practice, its gcc definition is not what you want: the variable content is read before calling DoRun, and is ored+stored after calling DoRun.

This commit is contained in:
Mathieu Lacage
2009-09-30 10:50:03 +02:00
parent c5d81b203d
commit 09576cd905

View File

@@ -124,7 +124,8 @@ TestCase::Run (void)
{
DoReportStart ();
DoSetup ();
m_error |= DoRun ();
bool status = DoRun ();
m_error |= status;
DoTeardown ();
if (m_error == false)
{