Index: gdb/testsuite/gdb.mi/mi2-var-display.exp |
diff --git a/gdb/testsuite/gdb.mi/mi2-var-display.exp b/gdb/testsuite/gdb.mi/mi2-var-display.exp |
index f5c69abe18af3c885e0258bd2dc103c242002c24..4bb1cd89963f1edf2dc2c6cbb333a93cf268d636 100644 |
--- a/gdb/testsuite/gdb.mi/mi2-var-display.exp |
+++ b/gdb/testsuite/gdb.mi/mi2-var-display.exp |
@@ -27,10 +27,9 @@ if [mi_gdb_start] { |
continue |
} |
-set testfile "var-cmd" |
-set srcfile ${testfile}.c |
-set binfile ${objdir}/${subdir}/mi2-var-display |
-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 mi2-var-display.exp |
return -1 |
} |
@@ -285,7 +284,7 @@ mi_gdb_test "-var-set-format weird.func_ptr_struct hexadecimal" \ |
"set format variable weird.func_ptr_struct" |
mi_gdb_test "-var-set-format weird.func_ptr_ptr natural" \ |
- "\\^done,format=\"natural\",value=\"0\"" \ |
+ "\\^done,format=\"natural\",value=\"0x0\"" \ |
"set format variable weird.func_ptr_ptr" |
mi_gdb_test "-var-set-format weird.u1 natural" \ |