gdb/testsuite: do minor clean-up in gdb.cp/rvalue-ref-overload.exp
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Tue, 12 Nov 2019 15:06:29 +0000 (16:06 +0100)
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Fri, 6 Dec 2019 07:05:04 +0000 (08:05 +0100)
Simplify the expected test outputs.  This is a minor cleanup; no
functional change is intended.

gdb/testsuite/ChangeLog:
2019-12-06  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

* gdb.cp/rvalue-ref-overload.exp: Minor cleanup.

Change-Id: Ie760a2856cae3be0eeed5496765a5f1cd102d6b7

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/rvalue-ref-overload.exp

index adbbd9c9d85c941f6f2a88de138773a0e87b244c..f7447dcb2b9bb685be3be394b4d05834e7fce434 100644 (file)
@@ -1,3 +1,7 @@
+2019-12-06  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+       * gdb.cp/rvalue-ref-overload.exp: Minor cleanup.
+
 2019-12-06  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
 
        * gdb.cp/rvalue-ref-overload.cc: Add a case that involves both
index 693c7cad20a7f2a16f2f20398b1b82479062d55e..e92e90139a449ff48695469a762e7cd129668b2b 100644 (file)
@@ -53,20 +53,16 @@ cp_test_ptype_class "foo_rr_instance1" "" "class" "foo" \
        { method public "int overloadConst(const foo &&);" }
     }
 
-gdb_test "print foo_rr_instance1.overload1arg(arg)" \
-    "\\$\[0-9\]+ = 1" \
-    "print call overloaded func foo & arg"
+gdb_test "print foo_rr_instance1.overload1arg(arg)" "1"
 
-gdb_test "print foo_rr_instance1.overload1arg(static_cast<foo&&>(arg))" \
-    "\\$\[0-9\]+ = 2" \
-    "print call overloaded func foo && arg"
+gdb_test "print foo_rr_instance1.overload1arg(static_cast<foo&&>(arg))" "2"
 
 gdb_test "print foo_rr_instance1.overloadConst(arg)" "3"
 
 # Test lvalue vs rvalue function overloads
-gdb_test "print f (i)" "1" "lvalue reference overload"
+gdb_test "print f (i)" "1" "lvalue reference overload"
 
-gdb_test "print f (ci)" "2" "lvalue reference to const overload"
+gdb_test "print f (ci)" "2" "lvalue reference to const overload"
 
 setup_kfail "c++/15372" "*-*-*"
-gdb_test "print f (3)" "3" "rvalue reference overload"
+gdb_test "print f (3)" "3" "rvalue reference overload"
This page took 0.050209 seconds and 4 git commands to generate.