aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-template.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.python/py-template.exp')
-rw-r--r--gdb/testsuite/gdb.python/py-template.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.python/py-template.exp b/gdb/testsuite/gdb.python/py-template.exp
index 5aff73d..1c855fb 100644
--- a/gdb/testsuite/gdb.python/py-template.exp
+++ b/gdb/testsuite/gdb.python/py-template.exp
@@ -48,12 +48,12 @@ proc test_template_arg {exefile type} {
return
}
# There is no executable code in main(), so we are where we want to be
- gdb_test "print foo" ".*"
+ gdb_test "print (foo)" ".*"
gdb_test_no_output "python foo = gdb.history(0)"
# Replace '*' with '\*' in regex.
regsub -all {\*} $type {\*} t
- gdb_test "python print foo.type.template_argument(0)" $t $type
+ gdb_test "python print (foo.type.template_argument(0))" $t $type
}
test_template_arg "${binfile}-ci" "const int"