Fix build of tst_qoperatingsystemversion.cpp with C++20
The QCOMPARE_EQ macro was mistyped.
This amends commit 5ea434b09f.
Change-Id: I313eb5ef02bb2266d659bdbe41d7d8f10691e0ca
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
parent
75d82afa0d
commit
3dba889fef
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue