diff --git a/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp b/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp
index be858a91eaf5f4492637b9840de7fb743cf94242..413f7f5992adf8cf65571a449536119613c651ec 100644
--- a/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp
+++ b/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp
@@ -1406,6 +1406,8 @@ void testQThread()
 {
     Thread thread1(1);
     Thread thread2(2);
+    thread1.setObjectName("This is the first thread");
+    thread2.setObjectName("This is another thread");
     thread1.start();
     thread2.start();
     thread1.wait();