Index: gdb/testsuite/gdb.mi/mi-var-cmd.exp |
diff --git a/gdb/testsuite/gdb.mi/mi-var-cmd.exp b/gdb/testsuite/gdb.mi/mi-var-cmd.exp |
index f3ee77ad1c4ff3ad5e179fee99ae075030591e80..4c560a7ebc96580581fb53ad52dd0a4a81f9b5b9 100644 |
--- a/gdb/testsuite/gdb.mi/mi-var-cmd.exp |
+++ b/gdb/testsuite/gdb.mi/mi-var-cmd.exp |
@@ -28,10 +28,9 @@ if [mi_gdb_start] { |
continue |
} |
-set testfile "var-cmd" |
-set srcfile ${testfile}.c |
-set binfile ${objdir}/${subdir}/mi-var-cmd |
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } { |
+standard_testfile var-cmd.c |
+ |
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { |
untested mi-var-cmd.exp |
return -1 |
} |
@@ -377,11 +376,11 @@ mi_gdb_test "-var-update *" \ |
"assign same value to func (update)" |
mi_gdb_test "-var-create array_ptr * array_ptr" \ |
- "\\^done,name=\"array_ptr\",numchild=\"1\",value=\"$hex\",type=\"int \\*\",has_more=\"0\"" \ |
+ "\\^done,name=\"array_ptr\",numchild=\"1\",value=\"$hex <array>\",type=\"int \\*\",has_more=\"0\"" \ |
"create global variable array_ptr" |
mi_gdb_test "-var-assign array_ptr array2" \ |
- "\\^done,value=\"$hex\"" \ |
+ "\\^done,value=\"$hex <array2>\"" \ |
"assign array to pointer" |
mi_gdb_test "-var-update *" \ |
@@ -389,7 +388,7 @@ mi_gdb_test "-var-update *" \ |
"assign array to pointer (update)" |
mi_gdb_test "-var-assign array_ptr array2" \ |
- "\\^done,value=\"$hex\"" \ |
+ "\\^done,value=\"$hex <array2>\"" \ |
"assign same array to pointer" |
mi_gdb_test "-var-update *" \ |