From efff7bdf9f465281a39dc0d3edc5ca49b9c7a1fb Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Wed, 19 Jul 2023 17:20:12 +0200 Subject: [PATCH] tst_QLocale: rename "emptyCtor" test to better describe it It's actually testing that the system locale (which it obtains via the default constructor, relying on setDefault() not being called first in the helper program - which I'll soon change) behaves as expected. Change-Id: Iedd2c1bb549288661c910dfbaac509ede9506d04 Reviewed-by: Thiago Macieira Reviewed-by: Konrad Kujawa --- tests/auto/corelib/text/qlocale/tst_qlocale.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/auto/corelib/text/qlocale/tst_qlocale.cpp b/tests/auto/corelib/text/qlocale/tst_qlocale.cpp index daf198b918..80b3a722fa 100644 --- a/tests/auto/corelib/text/qlocale/tst_qlocale.cpp +++ b/tests/auto/corelib/text/qlocale/tst_qlocale.cpp @@ -48,8 +48,8 @@ private slots: #endif void ctor(); - void emptyCtor_data(); - void emptyCtor(); + void systemLocale_data(); + void systemLocale(); void consistentC(); void matchingLocales(); void stringToDouble_data(); @@ -573,7 +573,7 @@ static inline bool runSysAppTest(const QString &binary, } #endif -void tst_QLocale::emptyCtor_data() +void tst_QLocale::systemLocale_data() { #if !QT_CONFIG(process) QSKIP("No qprocess support"); @@ -653,7 +653,7 @@ void tst_QLocale::emptyCtor_data() #endif // process } -void tst_QLocale::emptyCtor() +void tst_QLocale::systemLocale() { #if QT_CONFIG(process) // for runSysAppTest QLatin1String request(QTest::currentDataTag());