summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2019-08-16 16:42:14 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2019-08-22 10:29:22 +0000
commit567a0db6ddb611b9f56c2950e6b9c363b581a79a (patch)
tree5ca02dc4527bc2fc3adccda615f0ad73958dd98c /tests
parentc1e2720bed2287083b9a8c2d31fe4e571c217c51 (diff)
downloadqt-creator-567a0db6ddb611b9f56c2950e6b9c363b581a79a.tar.gz
Utils::Environment: Consider target OS type when sorting
That is, use case-insensitive sorting on Windows, so that e.g. "Path" will not appear after "PROCESSOR_REVISION". Fixes: QTCREATORBUG-22786 Change-Id: I42d469b6079037d1062dbd5b273f5aa8ade25e79 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/environment/tst_environment.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/environment/tst_environment.cpp b/tests/auto/environment/tst_environment.cpp
index 74177b5edd..d91e8800ed 100644
--- a/tests/auto/environment/tst_environment.cpp
+++ b/tests/auto/environment/tst_environment.cpp
@@ -198,7 +198,7 @@ void tst_Environment::environmentSetNewWindows()
env.set("bar", "baz");
- QCOMPARE(env.toStringList(), QStringList({"Foo=bar", "Hi=HO", "bar=baz"}));
+ QCOMPARE(env.toStringList(), QStringList({"bar=baz", "Foo=bar", "Hi=HO"}));
}
void tst_Environment::environmentSetNewUnix()