ChangeLog:
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / corefile.exp
index 24a33a3cf0c84a7c0fa533c69736dacec55233ed..04ae9691df61ad1376829c3eb1e776ff423e8b85 100644 (file)
@@ -255,3 +255,19 @@ if ![is_remote target] {
 
     gdb_exit
 }
+
+# Test warning-free core file load.  E.g., a Linux vDSO used to
+# trigger this warning:
+#     warning: Can't read pathname for load map: Input/output error.
+
+clean_restart ${testfile}
+
+set test "core-file warning-free"
+gdb_test_multiple "core-file $corefile" $test {
+    -re "warning: .*\r\n.*\r\n$gdb_prompt $" {
+       fail $test
+    }
+    -re "\r\n$gdb_prompt $" {
+       pass $test
+    }
+}
This page took 0.025565 seconds and 4 git commands to generate.