[PATCH 11/29] gdb/testsuite: Remove duplicates from gdb.base/dfp-test.exp

Lancelot SIX lsix@lancelotsix.com
Sun Nov 21 17:56:18 GMT 2021


When running the testsuite, I have:

    Running .../gdb/testsuite/gdb.base/dfp-test.exp ...
    DUPLICATE: gdb.base/dfp-test.exp: 1.23E is an invalid number
    DUPLICATE: gdb.base/dfp-test.exp: 1.23E45A is an invalid number
    DUPLICATE: gdb.base/dfp-test.exp: 1.23E is an invalid number
    DUPLICATE: gdb.base/dfp-test.exp: 1.23E45A is an invalid number

Fix by adjusting the test names.

Tested on x86_64-linux.
---
 gdb/testsuite/gdb.base/dfp-test.exp | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/gdb/testsuite/gdb.base/dfp-test.exp b/gdb/testsuite/gdb.base/dfp-test.exp
index 379794a1b31..c2ca7e7f032 100644
--- a/gdb/testsuite/gdb.base/dfp-test.exp
+++ b/gdb/testsuite/gdb.base/dfp-test.exp
@@ -61,10 +61,10 @@ proc d32_set_tests {} {
     gdb_test "p d32=1.234567E+97df" " = Infinity" "1.234567E+97 is Infinity"
 
     # Test that gdb could detect the errors in the string representation of _Decimal32
-    gdb_test "p d32=12345.df" " = 12345" "12345. is a valid number"
-    gdb_test "p d32=12345df" ".*Invalid number.*" "12345 is an invalid number"
-    gdb_test "p d32=1.23Edf" ".*Conversion syntax.*" "1.23E is an invalid number"
-    gdb_test "p d32=1.23E45Adf" ".*Conversion syntax.*" "1.23E45A is an invalid number"
+    gdb_test "p d32=12345.df" " = 12345" "12345. is a valid Decimal32 number"
+    gdb_test "p d32=12345df" ".*Invalid number.*" "12345 is an invalid Decimal32 number"
+    gdb_test "p d32=1.23Edf" ".*Conversion syntax.*" "1.23E is an invalid Decimal32 number"
+    gdb_test "p d32=1.23E45Adf" ".*Conversion syntax.*" "1.23E45A is an invalid Decimal32 number"
 }
 
 proc d64_set_tests {} {
@@ -92,9 +92,9 @@ proc d64_set_tests {} {
     gdb_test "p d64=1.234567890123456E385dd" " = Infinity" "d64=1.234567890123456E385 is Infinity"
 
     # Test that gdb could detect the errors in the string representation of _Decimal64
-    gdb_test "p d64=12345dd" ".*Invalid number.*" "12345dd is an invalid number"
-    gdb_test "p d64=1.23Edd" ".*Conversion syntax.*" "1.23E is an invalid number"
-    gdb_test "p d64=1.23E45Add" ".*Conversion syntax.*" "1.23E45A is an invalid number"
+    gdb_test "p d64=12345dd" ".*Invalid number.*" "12345 is an invalid Decimal64 number"
+    gdb_test "p d64=1.23Edd" ".*Conversion syntax.*" "1.23E is an invalid Decimal64 number"
+    gdb_test "p d64=1.23E45Add" ".*Conversion syntax.*" "1.23E45A is an invalid Decimal64 number"
 }
 
 proc d128_set_tests {} {
@@ -121,9 +121,9 @@ proc d128_set_tests {} {
     gdb_test "p d128=1.234567890123456E6145dl" "Infinity" "d128=1.234567890123456E6145 is Infinity"
 
     # Test that gdb could detect the errors in the string representation of _Decimal128
-    gdb_test "p d128=12345dl" ".*Invalid number.*" "12345dl is an invalid number"
-    gdb_test "p d128=1.23Edl" ".*Conversion syntax.*" "1.23E is an invalid number"
-    gdb_test "p d128=1.23E45Adl" ".*Conversion syntax.*" "1.23E45A is an invalid number"
+    gdb_test "p d128=12345dl" ".*Invalid number.*" "12345dl is an invalid Decimal128 number"
+    gdb_test "p d128=1.23Edl" ".*Conversion syntax.*" "1.23E is an invalid Decimal128 number"
+    gdb_test "p d128=1.23E45Adl" ".*Conversion syntax.*" "1.23E45A is an invalid Decimal128 number"
 }
 
 # Different tests on 32-bits decimal floating point, including the printing
-- 
2.33.1



More information about the Gdb-patches mailing list