From ca8383fb3e553c9ad1fb611f161399e874b84f85 Mon Sep 17 00:00:00 2001 From: Jonah Graham Date: Tue, 21 Jan 2025 11:52:03 -0500 Subject: [PATCH] Run the loop fewer times This test sometimes hangs when run a lot. As best as I can tell this is a Ubuntu problem, rather than a gdb problem as it only fails on Ubuntu 24.04, but I am not sure. I cannot reproduce the problem when using the UI. Part of #816 --- .../tests/dsf/gdb/tests/nonstop/ThreadStackFrameSyncTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/nonstop/ThreadStackFrameSyncTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/nonstop/ThreadStackFrameSyncTest.java index 5a6df296318..13c6178e896 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/nonstop/ThreadStackFrameSyncTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/nonstop/ThreadStackFrameSyncTest.java @@ -225,7 +225,7 @@ public void testGdbSyncServiceCanSwitchGDBStackFrame() throws Throwable { final IFrameDMContext frame0 = SyncUtil.getStackFrame(1, 0); // do a few of times - for (int i = 0; i < 50; i++) { + for (int i = 0; i < 10; i++) { // have the sync service switch stack frame to 1 Query query1 = new Query<>() { @Override