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