diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2011-07-22 18:01:43 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2011-07-22 18:01:43 +0000 |
commit | b3215adc06e4946aca4b6b6c4ebea305753fbe22 (patch) | |
tree | 597c6146bb9b7507ccf73a609e49428adb4df960 /gdb/testsuite/gdb.python/py-template.exp | |
parent | 182b9acc4b043d7d313f94d217bb6e4f869e5f86 (diff) | |
download | gdb-b3215adc06e4946aca4b6b6c4ebea305753fbe22.zip gdb-b3215adc06e4946aca4b6b6c4ebea305753fbe22.tar.gz gdb-b3215adc06e4946aca4b6b6c4ebea305753fbe22.tar.bz2 |
* gdb.python/py-mi.exp: Use different file names for different
versions of the executable under test.
* gdb.python/py-prettyprint.exp: Likewise.
* gdb.python/py-symbol.exp: Likewise.
* gdb.python/py-template.exp: Likewise.
* gdb.python/py-type.exp: Likewise.
* gdb.python/py-value.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-template.exp')
-rw-r--r-- | gdb/testsuite/gdb.python/py-template.exp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gdb/testsuite/gdb.python/py-template.exp b/gdb/testsuite/gdb.python/py-template.exp index 9656831..ab49ca9 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 {type} { +proc test_template_arg {name type} { global testfile srcdir subdir srcfile binfile - if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \ + if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}-${name}" \ executable \ [list debug c++ additional_flags="-DTYPE=$type"]] != "" } { untested $type return -1 } - gdb_load ${binfile} + gdb_load ${binfile}-${name} if ![runto_main ] then { perror "couldn't run to breakpoint" return @@ -62,11 +62,11 @@ proc test_template_arg {type} { gdb_test "python print foo.type.template_argument(0)" $t $type } -test_template_arg "const int" -test_template_arg "volatile int" -test_template_arg "const int &" -test_template_arg "volatile int &" -test_template_arg "volatile int * const" -test_template_arg "volatile int * const *" -test_template_arg "const int * volatile" -test_template_arg "const int * volatile * const * volatile *" +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 *" |