We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcacc54 commit 6009d31Copy full SHA for 6009d31
1 file changed
test/testbufferoverrun.cpp
@@ -3327,6 +3327,7 @@ class TestBufferOverrun : public TestFixture {
3327
3328
void buffer_overrun_errorpath() {
3329
setMultiline();
3330
+ const Settings settingsOld = settings0;
3331
settings0.templateLocation = "{file}:{line}:note:{info}";
3332
3333
check("void f() {\n"
@@ -3336,6 +3337,10 @@ class TestBufferOverrun : public TestFixture {
3336
3337
ASSERT_EQUALS("test.cpp:3:error:Buffer is accessed out of bounds: p\n"
3338
"test.cpp:2:note:Assign p, buffer with size 10\n"
3339
"test.cpp:3:note:Buffer overrun\n", errout.str());
3340
+
3341
+ // TODO: need to reset this but it breaks other tests
3342
+ (void)settingsOld;
3343
+ //settings0 = settingsOld;
3344
}
3345
3346
void buffer_overrun_bailoutIfSwitch() {
0 commit comments