aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2008-10-09 16:49:47 +0000
committerTom Tromey <tromey@redhat.com>2008-10-09 16:49:47 +0000
commitdcb1a1e279928080fb42b2270f5a3180f81e4133 (patch)
treeabc65785863afd8318043a6773ed91c4a25e6676 /gdb/testsuite
parentd11d9deb002f339cb0197a6eafaaf6eb3216fd11 (diff)
downloadgdb-dcb1a1e279928080fb42b2270f5a3180f81e4133.zip
gdb-dcb1a1e279928080fb42b2270f5a3180f81e4133.tar.gz
gdb-dcb1a1e279928080fb42b2270f5a3180f81e4133.tar.bz2
* gdb.base/macscp.exp: Use 'vafunc' and 'fixedarg' rather than
'fprintf' and 'stderr'.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/macscp.exp20
2 files changed, 15 insertions, 10 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 2991d16..b347e87 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-09 Tom Tromey <tromey@redhat.com>
+
+ * gdb.base/macscp.exp: Use 'vafunc' and 'fixedarg' rather than
+ 'fprintf' and 'stderr'.
+
2008-10-07 Joel Brobecker <brobecker@adacore.com>
* gdb.ada/ref_tick_size.exp: New testcase.
diff --git a/gdb/testsuite/gdb.base/macscp.exp b/gdb/testsuite/gdb.base/macscp.exp
index 2a43a28..40546f9 100644
--- a/gdb/testsuite/gdb.base/macscp.exp
+++ b/gdb/testsuite/gdb.base/macscp.exp
@@ -566,44 +566,44 @@ gdb_test "macro expand SPLICE(robot, invasion)" \
# Varargs tests.
-gdb_test "macro define va_c99(...) fprintf (stderr, __VA_ARGS__)" \
+gdb_test "macro define va_c99(...) varfunc (fixedarg, __VA_ARGS__)" \
"" \
"define first varargs helper"
-gdb_test "macro define va2_c99(x, y, ...) fprintf (stderr, x, y, __VA_ARGS__)" \
+gdb_test "macro define va2_c99(x, y, ...) varfunc (fixedarg, x, y, __VA_ARGS__)" \
"" \
"define second varargs helper"
-gdb_test "macro define va_gnu(args...) fprintf (stderr, args)" \
+gdb_test "macro define va_gnu(args...) varfunc (fixedarg, args)" \
"" \
"define third varargs helper"
-gdb_test "macro define va2_gnu(args...) fprintf (stderr, ## args)" \
+gdb_test "macro define va2_gnu(args...) varfunc (fixedarg, ## args)" \
"" \
"define fourth varargs helper"
gdb_test "macro expand va_c99(one, two, three)" \
- "expands to: *fprintf \\(stderr, *one, two, three\\)" \
+ "expands to: *varfunc \\(fixedarg, *one, two, three\\)" \
"c99 varargs expansion"
gdb_test "macro expand va_c99()" \
- "expands to: *fprintf \\(stderr, *\\)" \
+ "expands to: *varfunc \\(fixedarg, *\\)" \
"c99 varargs expansion without an argument"
gdb_test "macro expand va2_c99(one, two, three, four)" \
- "expands to: *fprintf \\(stderr, *one, two, three, four\\)" \
+ "expands to: *varfunc \\(fixedarg, *one, two, three, four\\)" \
"c99 varargs expansion, multiple formal arguments"
gdb_test "macro expand va_gnu(one, two, three, four)" \
- "expands to: *fprintf \\(stderr, *one, two, three, four\\)" \
+ "expands to: *varfunc \\(fixedarg, *one, two, three, four\\)" \
"gnu varargs expansion"
gdb_test "macro expand va_gnu()" \
- "expands to: *fprintf \\(stderr, *\\)" \
+ "expands to: *varfunc \\(fixedarg, *\\)" \
"gnu varargs expansion without an argument"
gdb_test "macro expand va2_gnu()" \
- "expands to: *fprintf \\(stderr\\)" \
+ "expands to: *varfunc \\(fixedarg\\)" \
"gnu varargs expansion special splicing without an argument"
# Stringification tests.