[gdb/testsuite] Expect conformation question in gdb.server/solib-list.exp
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.server / solib-list.exp
index 6f077c6a664ecb379f7ae05ba520bcf1faece42f..a326f940ad8c83a04dfe3c12e27852e33aa7087a 100644 (file)
@@ -93,12 +93,14 @@ foreach nonstop { 0 1 } { with_test_prefix "non-stop $nonstop" {
 
     set test "target $gdbserver_protocol"
     set ok 0
+    set new_symbol_table 0
     gdb_test_multiple "target $gdbserver_protocol $gdbserver_gdbport" $test {
        -re "Remote debugging using" {
            set ok 1
            exp_continue
        }
        -re {.*Load new symbol table from ".*"\? \(y or n\) } {
+           set new_symbol_table 1
            send_gdb "y\n" answer
            exp_continue
        }
@@ -111,6 +113,7 @@ foreach nonstop { 0 1 } { with_test_prefix "non-stop $nonstop" {
            }
        }
     }
+    gdb_assert {$new_symbol_table == 1}
 
     gdb_test "continue" "Program received signal SIGUSR1, .*"
     gdb_test "sharedlibrary" ".*"
This page took 0.025198 seconds and 4 git commands to generate.