Index: gdb/testsuite/gdb.cell/gcore.exp |
diff --git a/gdb/testsuite/gdb.cell/gcore.exp b/gdb/testsuite/gdb.cell/gcore.exp |
index c05bc4ab525bf33b77f111e88c022e3fb79561f2..1fa6a6a114e8bd1ed695c69493c42d40c8e9a9cb 100644 |
--- a/gdb/testsuite/gdb.cell/gcore.exp |
+++ b/gdb/testsuite/gdb.cell/gcore.exp |
@@ -1,4 +1,4 @@ |
-# Copyright 2009, 2011-2012 Free Software Foundation, Inc. |
+# Copyright 2009-2013 Free Software Foundation, Inc. |
# |
# This program is free software; you can redistribute it and/or modify |
# it under the terms of the GNU General Public License as published by |
@@ -69,21 +69,11 @@ delete_breakpoints |
gdb_test "continue" ".*Aborted.*" |
-set escapedfilename [string_to_regexp ${objdir}/${subdir}/gcore.test] |
- |
-gdb_test_multiple "gcore ${objdir}/${subdir}/gcore.test" \ |
- "save a corefile" \ |
-{ |
- -re "Saved corefile ${escapedfilename}\[\r\n\]+$gdb_prompt $" { |
- pass "save a corefile" |
- } |
- -re "Can't create a corefile\[\r\n\]+$gdb_prompt $" { |
- unsupported "save a corefile" |
+if {![gdb_gcore_cmd "${objdir}/${subdir}/gcore.test" \ |
+ "save a corefile"]} { |
return -1 |
- } |
} |
- |
# Now restart gdb and load the corefile. |
gdb_exit |
gdb_start |