-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CHECK / REQUIRE (true==true) fails in Debug Build #50
Comments
That's really bizarre. But I think I have found the cause (but have run out of time to fix it this morning - will have to do that this evening). I recently added an overload for expression components that are bools that take the bool by value instead of by const ref. This was to prevent a case where expressions with undefined types were being evaluated when they didn't need to be. However, that (now local value) bool is being held between calls by const ref - so it's now referencing an out-of-scope value! It's amazing (and unfortunate) it's taken so long to show, but such is the nature of these things. My apologies to the community for letting such a schoolboy error slip through. Will have it fixed as soon as possible. |
I've checked in my "fix". However I won't have access to VC++ again until tomorrow so I've only been able to verify that it doesn't break on my gcc/ XCode set-up. |
I just tested the updated CATCH version with the test cases that I provided above and they now succeed in Release and Debug mode for VC++ 2008 Express! |
Thanks @trenki2. I've just been able to verify it in VS2008 too. |
Yes, I simply downloaded the new zip archive. |
I had code like this and somehow in Debug Build my tests failed:
The following tests the scenario just with true and false statements.
The text was updated successfully, but these errors were encountered: