From a812bd73034c27eb986ce8bf1c3c6c2686dd2de0 Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 18 Nov 2020 10:30:38 +0100 Subject: [PATCH] Debugger: Make qfloat16 dumper test pass with Qt 6 45.3 is represented as 45.28125 in Qt 5, but as 45.3125 in Qt 6. Actually an improvement. Task-number: QTCREATORBUG-24098 Change-Id: I779bfd8a2b4a2ae91f5e40dbe54ba75000531f4c Reviewed-by: Christian Stenger --- tests/auto/debugger/tst_dumpers.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp index 5aaef547416..80febccf1f7 100644 --- a/tests/auto/debugger/tst_dumpers.cpp +++ b/tests/auto/debugger/tst_dumpers.cpp @@ -5855,7 +5855,8 @@ void tst_Dumpers::dumper_data() // Using numpy: // + Check("f1", "45.281", "@qfloat16") // + Check("f2", "45.094", "@qfloat16"); - + Check("f1", "45.28125", "@qfloat16") + + Check("f1", "45.28125", "@qfloat16") % Qt5 + + Check("f1", "45.3125", "@qfloat16") % Qt6 + Check("f2", "45.09375", "@qfloat16");