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:
@@ -124,7 +124,8 @@ TestCase::Run (void)
|
||||
{
|
||||
DoReportStart ();
|
||||
DoSetup ();
|
||||
m_error |= DoRun ();
|
||||
bool status = DoRun ();
|
||||
m_error |= status;
|
||||
DoTeardown ();
|
||||
if (m_error == false)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user