From 3dba889fef06c8760edab41159b98aaa4150b9b5 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Tue, 19 Mar 2024 17:23:40 +0100 Subject: [PATCH] Fix build of tst_qoperatingsystemversion.cpp with C++20 The QCOMPARE_EQ macro was mistyped. This amends commit 5ea434b09f6a760b84fb14a69cc578063cad99a1. Change-Id: I313eb5ef02bb2266d659bdbe41d7d8f10691e0ca Reviewed-by: Thiago Macieira --- .../qoperatingsystemversion/tst_qoperatingsystemversion.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/auto/corelib/global/qoperatingsystemversion/tst_qoperatingsystemversion.cpp b/tests/auto/corelib/global/qoperatingsystemversion/tst_qoperatingsystemversion.cpp index d59598ecf0c..4c4ff727223 100644 --- a/tests/auto/corelib/global/qoperatingsystemversion/tst_qoperatingsystemversion.cpp +++ b/tests/auto/corelib/global/qoperatingsystemversion/tst_qoperatingsystemversion.cpp @@ -177,7 +177,7 @@ void tst_QOperatingSystemVersion::comparison() QCOMPARE_EQ(lhsSystemInfo > rhsSystemInfo, is_gt(expectedResult)); QCOMPARE_EQ(lhsSystemInfo >= rhsSystemInfo, is_gteq(expectedResult)); #ifdef __cpp_lib_three_way_comparison - Q_COMPARE_EQ(lhsSystemInfo <=> rhsSystemInfo, expectedResult); + QCOMPARE_EQ(lhsSystemInfo <=> rhsSystemInfo, expectedResult); #endif } @@ -237,7 +237,7 @@ void tst_QOperatingSystemVersion::comparison2() QCOMPARE_EQ(lhs > rhs, is_gt(result) && comparable); QCOMPARE_EQ(lhs >= rhs, is_gteq(result) && comparable); #ifdef __cpp_lib_three_way_comparison - Q_COMPARE_EQ(lhs <=> rhs, result); + QCOMPARE_EQ(lhs <=> rhs, result); #endif }