diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-05-09 05:38:42 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2011-05-09 08:43:26 (GMT) |
commit | a4f105070799d4b4362b80b77c5960b364f77000 (patch) | |
tree | b80e10220fc9a67f0021d11739a06f8f85c5420f /tests/auto | |
parent | 385107ebc71a74dae031b713ea5a9c54635eeff8 (diff) | |
download | Qt-a4f105070799d4b4362b80b77c5960b364f77000.zip Qt-a4f105070799d4b4362b80b77c5960b364f77000.tar.gz Qt-a4f105070799d4b4362b80b77c5960b364f77000.tar.bz2 |
Remove Q_ASSERT from qscriptvaluegenerated test
Report a fatal error if an empty test is generated rather than failing
silently in non-debug builds.
Change-Id: I79aa7a9eb09e387cef1960816a4bcce7b1af282d
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qscriptvaluegenerated/testgen/testgenerator.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qscriptvaluegenerated/testgen/testgenerator.h b/tests/auto/qscriptvaluegenerated/testgen/testgenerator.h index be4f79f..d3096c0 100644 --- a/tests/auto/qscriptvaluegenerated/testgen/testgenerator.h +++ b/tests/auto/qscriptvaluegenerated/testgen/testgenerator.h @@ -59,7 +59,8 @@ public: void run() { prepareData(); - Q_ASSERT(m_tempFile.size()); + if (!m_tempFile.size()) + qFatal("%s: prepareData failed to generate any data", Q_FUNC_INFO); save(generateTest()); } |