Stop relying on QHash ordering
authorGiuseppe D'Angelo <dangelog@gmail.com>
Sun, 1 Apr 2012 17:53:55 +0000 (18:53 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 3 Apr 2012 21:56:10 +0000 (23:56 +0200)
commitfb20f9c2da369b07fc50857a90b596ae63f943da
treeda28a81ab925777e4f82346a1ce6c6684f41c326
parent72eb9d49a9849ba4a27b27e82b60f4bdd887a70e
Stop relying on QHash ordering

tst_rcc and tst_qdom rely on specific QHash orderings inside
rcc and QDom respectively (see QTBUG-25078 and QTBUG-25071).

A workaround is added to make them succeed: QDom checks for
all possible orderings, and rcc initializes the hash seed to 0
if the QT_RCC_TEST environment variable is set.

Change-Id: I5ed6b50602fceba731c797aec8dffc9cc1d6a1ce
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
src/tools/rcc/main.cpp
tests/auto/tools/rcc/tst_rcc.cpp
tests/auto/xml/dom/qdom/tst_qdom.cpp