]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.base/include-main.exp
[gdb/testsuite] Fix gdb.base/include-main.exp with -readnow
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / include-main.exp
index 5e5e94951987d6ff5fe2ca5115ffe20a80648293..28c0a3b4cfaefa7bb76edcefb061047f39249bd8 100644 (file)
@@ -32,8 +32,10 @@ gdb_test_no_output "set language c"
 
 gdb_load $binfile
 
-# Verify that no CU was expanded.
-gdb_test_no_output "maint info symtab"
+if { ! [readnow] } {
+    # Verify that no CU was expanded.
+    gdb_test_no_output "maint info symtab"
+}
 
 # List a line in include-main.c.  The tricky bit is that there's no code in
 # include-main.c, so the file should not occur in the .debug_line info.