diff options
author | Doug Evans <xdje42@gmail.com> | 2013-11-23 16:03:47 -0800 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2013-11-23 16:03:47 -0800 |
commit | 35720eaabd2da83301b6488347be1e7fc9d6fc44 (patch) | |
tree | 8c77506a4119d314c13a0e95bd8132fe5eeaf5a4 | |
parent | 3cd14e4575a40c8b9d2c009de38b5f1de6370d51 (diff) | |
download | gdb-35720eaabd2da83301b6488347be1e7fc9d6fc44.zip gdb-35720eaabd2da83301b6488347be1e7fc9d6fc44.tar.gz gdb-35720eaabd2da83301b6488347be1e7fc9d6fc44.tar.bz2 |
Test name tweaks for py-value.exp.
* gdb.python/py-value.exp (test_lazy_strings): Tweak test names.
(test_subscript_regression): Ditto.
(top level): Run test_subscript_regression for c++ with "c++" prefix.
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-value.exp | 12 |
2 files changed, 13 insertions, 5 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e77570c..a1ae851 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,11 @@ 2013-11-23 Doug Evans <xdje42@gmail.com> + * gdb.python/py-value.exp (test_lazy_strings): Tweak test names. + (test_subscript_regression): Ditto. + (top level): Run test_subscript_regression for c++ with "c++" prefix. + +2013-11-23 Doug Evans <xdje42@gmail.com> + * gdb.python/py-type.exp (test_enums): Fix typo. 2013-11-23 Doug Evans <xdje42@gmail.com> diff --git a/gdb/testsuite/gdb.python/py-value.exp b/gdb/testsuite/gdb.python/py-value.exp index 4f863a6..43de063 100644 --- a/gdb/testsuite/gdb.python/py-value.exp +++ b/gdb/testsuite/gdb.python/py-value.exp @@ -301,8 +301,8 @@ proc test_lazy_strings {} { gdb_py_test_silent_cmd "python sptr = gdb.history (0)" "Get value from history" 1 gdb_py_test_silent_cmd "python lstr = sptr.lazy_string()" "Aquire lazy string" 1 - gdb_test "python print (lstr.type)" "const char \*." "Test type name equality" - gdb_test "python print (sptr.type)" "const char \*." "Test type name equality" + gdb_test "python print (lstr.type)" "const char \*." "Test lazy-string type name equality" + gdb_test "python print (sptr.type)" "const char \*." "Test string type name equality" gdb_test "print sn" "0x0" gdb_py_test_silent_cmd "python snptr = gdb.history (0)" "Get value from history" 1 gdb_test "python snstr = snptr.lazy_string(length=5)" ".*Cannot create a lazy string with address.*" "Test lazy string" @@ -424,12 +424,12 @@ proc test_subscript_regression {exefile lang} { "Create a value for subscript test" 1 # Try to access an int with a subscript. This should fail. - gdb_test "python print (intv)" "1" "Baseline print of a Python value" + gdb_test "python print (intv)" "1" "Baseline print of an int Python value" gdb_test "python print (intv\[0\])" "gdb.error: Cannot subscript requested type.*" \ "Attempt to access an integer with a subscript" # Try to access a string with a subscript. This should pass. - gdb_test "python print (stringv)" "foo." "Baseline print of a Python value" + gdb_test "python print (stringv)" "foo." "Baseline print of a string Python value" gdb_test "python print (stringv\[0\])" "f." "Attempt to access a string with a subscript" # Try to access an int array via a pointer with a subscript. This should pass. @@ -515,5 +515,7 @@ if ![skip_cplus_tests] { if { [build_inferior "${binfile}-cxx" "c++"] < 0 } { return -1 } - test_subscript_regression "${binfile}-cxx" "c++" + with_test_prefix "c++" { + test_subscript_regression "${binfile}-cxx" "c++" + } } |