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