]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.base/watch-bitfields.exp
Increase timeout in watch-bitfields.exp for software watchpoint
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / watch-bitfields.exp
index 9d5293b7eac7f7f61ce3b6d22b9796a90d37978a..4f97043214b3d3a1e822dbd0dfd3ec8b5d820a96 100644 (file)
@@ -54,7 +54,14 @@ proc test_watch_location {} {
        expect_watchpoint "q.e" 0 5
        expect_watchpoint "q.a" 1 0
        expect_watchpoint "q.e" 5 4
-       gdb_continue_to_end
+
+       # It'll execute a large amount of code with software watchpoint
+       # enabled, which means GDB will single stepping all the way
+       # through til the inferior exits.  Increase the timeout by a
+       # factor of 4.
+       with_timeout_factor 4 {
+           gdb_continue_to_end
+       }
     }
 }
 
@@ -73,7 +80,14 @@ proc test_regular_watch {} {
        expect_watchpoint "q.d + q.f + q.g" 3 2
        expect_watchpoint "q.d + q.f + q.g" 2 1
        expect_watchpoint "q.d + q.f + q.g" 1 0
-       gdb_continue_to_end
+
+       # It'll execute a large amount of code with software watchpoint
+       # enabled, which means GDB will single stepping all the way
+       # through til the inferior exits.  Increase the timeout by a
+       # factor of 4.
+       with_timeout_factor 4 {
+           gdb_continue_to_end
+       }
     }
 }