From: Tankut Baris Aktemur Date: Tue, 12 Nov 2019 15:06:29 +0000 (+0100) Subject: gdb/testsuite: do minor clean-up in gdb.cp/rvalue-ref-overload.exp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c7d12402bd6cdedc5f09c2a46285fbcb0f7f0557;p=binutils-gdb.git gdb/testsuite: do minor clean-up in gdb.cp/rvalue-ref-overload.exp Simplify the expected test outputs. This is a minor cleanup; no functional change is intended. gdb/testsuite/ChangeLog: 2019-12-06 Tankut Baris Aktemur * gdb.cp/rvalue-ref-overload.exp: Minor cleanup. Change-Id: Ie760a2856cae3be0eeed5496765a5f1cd102d6b7 --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index adbbd9c9d85..f7447dcb2b9 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2019-12-06 Tankut Baris Aktemur + + * gdb.cp/rvalue-ref-overload.exp: Minor cleanup. + 2019-12-06 Tankut Baris Aktemur * gdb.cp/rvalue-ref-overload.cc: Add a case that involves both diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp b/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp index 693c7cad20a..e92e90139a4 100644 --- a/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp +++ b/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp @@ -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(arg))" \ - "\\$\[0-9\]+ = 2" \ - "print call overloaded func foo && arg" +gdb_test "print foo_rr_instance1.overload1arg(static_cast(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"