Increase delay in UserInterrupt.
authorTim Newsome <tim@sifive.com>
Mon, 28 Aug 2017 19:11:49 +0000 (12:11 -0700)
committerTim Newsome <tim@sifive.com>
Mon, 28 Aug 2017 19:11:49 +0000 (12:11 -0700)
When a machine is very loaded, otherwise it could happen that we send
the interrupt before the resume has actually happened.

debug/gdbserver.py

index ed881e4156d6e7d8b0a4a40f07cba0321fc6cc86..cbb1299ad9ecafc009df6c486a8e656f49fde011 100755 (executable)
@@ -408,7 +408,7 @@ class UserInterrupt(DebugTest):
         self.gdb.c()
         self.gdb.p("i=123")
         self.gdb.c(wait=False)
-        time.sleep(0.5)
+        time.sleep(2)
         output = self.gdb.interrupt()
         assert "main" in output
         assertGreater(self.gdb.p("j"), 10)