From 349f93700f58611bc7f2f244c4f19fb4e8c986e4 Mon Sep 17 00:00:00 2001 From: Warwick Allison Date: Mon, 11 Jan 2010 15:03:12 +1000 Subject: document test weakness --- tests/auto/declarative/xmlhttprequest/tst_xmlhttprequest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/auto/declarative/xmlhttprequest/tst_xmlhttprequest.cpp b/tests/auto/declarative/xmlhttprequest/tst_xmlhttprequest.cpp index e74d1c5..dc48195 100644 --- a/tests/auto/declarative/xmlhttprequest/tst_xmlhttprequest.cpp +++ b/tests/auto/declarative/xmlhttprequest/tst_xmlhttprequest.cpp @@ -57,6 +57,12 @@ public: tst_xmlhttprequest() {} private slots: + void initTestCase() { + if (QLocale::system().name().replace(QChar::fromAscii('_'),QChar::fromAscii('-')) != QLatin1String("en-US")) { + qWarning() << "Test will fail unless LANG is en_US"; + } + } + void domExceptionCodes(); void staticStateValues(); void instanceStateValues(); -- cgit v0.12