Remove XFAIL from selftests for some platforms
authorJason McDonald <jason.mcdonald@nokia.com>
Wed, 31 Aug 2011 04:14:06 +0000 (14:14 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 31 Aug 2011 11:12:43 +0000 (13:12 +0200)
commitf0d7e705ee66f82dfd32ce93670eba4f9186c4c0
tree538e511cc850d55645b62475d7d51a91df61b479
parent3526560d60ef82cd04e4fdf2e0ab751c0aca9731
Remove XFAIL from selftests for some platforms

The selftest for assert messages calls QEXPECT_FAIL if the assert
message doesn't exactly match the expected output.  This is because
Q_ASSERT uses __FILE__, which is compiler-dependant.

The expected output for this test contains various hard-coded unix
paths meaning that the test never passes on any platform.  This commit
removes those paths from the test data so that the test passes for
compilers that don't put path information in __FILE__.  This commit also
makes the XFAIL message more accurate -- absolute paths in assert
messages don't come from QTestLib, they come from Q_ASSERT's use of
__FILE__.

Change-Id: I9aae212379b43a29ae83715717cc978b4b619420
Reviewed-on: http://codereview.qt.nokia.com/3908
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/selftests/expected_assert.lightxml
tests/auto/selftests/expected_assert.txt
tests/auto/selftests/expected_assert.xml
tests/auto/selftests/expected_assert.xunitxml
tests/auto/selftests/tst_selftests.cpp