aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-template.exp
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2011-07-26 18:38:55 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2011-07-26 18:38:55 +0000
commitdb8e457004db245d2d9dbf680d0a948885b85154 (patch)
treeb615af1834cdd0622c972ea23692de37100f86a1 /gdb/testsuite/gdb.python/py-template.exp
parentdbdaa23218da484d7ae2e36b07882c7837e53bd7 (diff)
downloadgdb-db8e457004db245d2d9dbf680d0a948885b85154.zip
gdb-db8e457004db245d2d9dbf680d0a948885b85154.tar.gz
gdb-db8e457004db245d2d9dbf680d0a948885b85154.tar.bz2
* gdb.python/py-mi.exp: Avoid '+' in filenames. Call C version of
executable file "${binfile}", C++ version "${binfile}-cxx". * gdb.python/py-prettyprint.exp: Likewise. * gdb.python/py-symbol.exp: Likewise. * gdb.python/py-type.exp: Likewise. * gdb.python/py-value.exp: Likewise. * gdb.python/py-template.exp (test_template_arg): Pass full executable file name instead of just suffix.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-template.exp')
-rw-r--r--gdb/testsuite/gdb.python/py-template.exp24
1 files changed, 12 insertions, 12 deletions
diff --git a/gdb/testsuite/gdb.python/py-template.exp b/gdb/testsuite/gdb.python/py-template.exp
index ab49ca9..ef93f8c 100644
--- a/gdb/testsuite/gdb.python/py-template.exp
+++ b/gdb/testsuite/gdb.python/py-template.exp
@@ -40,15 +40,15 @@ gdb_reinitialize_dir $srcdir/$subdir
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }
-proc test_template_arg {name type} {
- global testfile srcdir subdir srcfile binfile
- if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}-${name}" \
+proc test_template_arg {exefile type} {
+ global testfile srcdir subdir srcfile
+ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${exefile}" \
executable \
[list debug c++ additional_flags="-DTYPE=$type"]] != "" } {
untested $type
return -1
}
- gdb_load ${binfile}-${name}
+ gdb_load ${exefile}
if ![runto_main ] then {
perror "couldn't run to breakpoint"
return
@@ -62,11 +62,11 @@ proc test_template_arg {name type} {
gdb_test "python print foo.type.template_argument(0)" $t $type
}
-test_template_arg "ci" "const int"
-test_template_arg "vi" "volatile int"
-test_template_arg "cir" "const int &"
-test_template_arg "vir" "volatile int &"
-test_template_arg "vipc" "volatile int * const"
-test_template_arg "vipcp" "volatile int * const *"
-test_template_arg "cipv" "const int * volatile"
-test_template_arg "cipvpcpvp" "const int * volatile * const * volatile *"
+test_template_arg "${binfile}-ci" "const int"
+test_template_arg "${binfile}-vi" "volatile int"
+test_template_arg "${binfile}-cir" "const int &"
+test_template_arg "${binfile}-vir" "volatile int &"
+test_template_arg "${binfile}-vipc" "volatile int * const"
+test_template_arg "${binfile}-vipcp" "volatile int * const *"
+test_template_arg "${binfile}-cipv" "const int * volatile"
+test_template_arg "${binfile}-cipvpcpvp" "const int * volatile * const * volatile *"