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