Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void testTextInput() {
- ...
- try {
- t.readNumber();
- alwaysAssertM(false, "Incorrect parse");
- } catch (....) {
- }
- ...
- }
- alwaysAssertM is written in a wrong place. The string with alwaysAssertM should be inside catch.
- This suspicious code was found in GLG3D project by PVS-Studio static code analyzer.
- Warning message is:
- V565 An empty exception handler. Silent suppression of exceptions can hide the presence of bugs in source code during testing. test ttextinput.cpp 495
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment