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 <thiago.macieira@intel.com>
This commit is contained in:
Joerg Bornemann 2024-03-19 17:23:40 +01:00
parent 75d82afa0d
commit 3dba889fef

View File

@ -177,7 +177,7 @@ void tst_QOperatingSystemVersion::comparison()
QCOMPARE_EQ(lhsSystemInfo > rhsSystemInfo, is_gt(expectedResult)); QCOMPARE_EQ(lhsSystemInfo > rhsSystemInfo, is_gt(expectedResult));
QCOMPARE_EQ(lhsSystemInfo >= rhsSystemInfo, is_gteq(expectedResult)); QCOMPARE_EQ(lhsSystemInfo >= rhsSystemInfo, is_gteq(expectedResult));
#ifdef __cpp_lib_three_way_comparison #ifdef __cpp_lib_three_way_comparison
Q_COMPARE_EQ(lhsSystemInfo <=> rhsSystemInfo, expectedResult); QCOMPARE_EQ(lhsSystemInfo <=> rhsSystemInfo, expectedResult);
#endif #endif
} }
@ -237,7 +237,7 @@ void tst_QOperatingSystemVersion::comparison2()
QCOMPARE_EQ(lhs > rhs, is_gt(result) && comparable); QCOMPARE_EQ(lhs > rhs, is_gt(result) && comparable);
QCOMPARE_EQ(lhs >= rhs, is_gteq(result) && comparable); QCOMPARE_EQ(lhs >= rhs, is_gteq(result) && comparable);
#ifdef __cpp_lib_three_way_comparison #ifdef __cpp_lib_three_way_comparison
Q_COMPARE_EQ(lhs <=> rhs, result); QCOMPARE_EQ(lhs <=> rhs, result);
#endif #endif
} }