summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptenginedebugger/tst_qscriptenginedebugger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qscriptenginedebugger/tst_qscriptenginedebugger.cpp')
-rw-r--r--tests/auto/qscriptenginedebugger/tst_qscriptenginedebugger.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qscriptenginedebugger/tst_qscriptenginedebugger.cpp b/tests/auto/qscriptenginedebugger/tst_qscriptenginedebugger.cpp
index 7f3f9f3..5e5b701 100644
--- a/tests/auto/qscriptenginedebugger/tst_qscriptenginedebugger.cpp
+++ b/tests/auto/qscriptenginedebugger/tst_qscriptenginedebugger.cpp
@@ -163,6 +163,14 @@ void tst_QScriptEngineDebugger::attachAndDetach()
debugger2.attachTo(&engine);
}
#endif
+ {
+ QScriptEngine *engine = new QScriptEngine;
+ QScriptEngineDebugger debugger;
+ debugger.attachTo(engine);
+ delete engine;
+ QScriptEngine engine2;
+ debugger.attachTo(&engine2);
+ }
}
void tst_QScriptEngineDebugger::action()