Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
7.0 (Next Major Release)
-
None
-
30077d462d (qt/qtbase/dev) 30077d462d (qt/tqtc-qtbase/dev) 8bd7f1334c (qt/tqtc-qtbase/6.2) c22bf97cb1 (qt/qtbase/6.4) c22bf97cb1 (qt/tqtc-qtbase/6.4) c22bf97cb1 (qt/tqtc-qtbase/6.4.1) c22bf97cb1 (qt/tqtc-qtbase/tqtc/qtinsight-6.4)
Description
The problem happened when I got a specific testfunction:datatag to fail:
FAIL! : tst_QSqlQuery::queryOnInvalidDatabase(0_QSQLITE@/tmp/tst_qsqlquery-uElocV/foo.db) 'query.lastError().isValid()' returned FALSE. (query.lastError().isValid() should be true!)
Then, I tried to re-run the specific testfunction:datatag to reproduce the failure:
tst_qsqlquery queryOnInvalidDatabase:0_QSQLITE@/tmp/tst_qsqlquery-uElocV/foo.db
But that data tag no longer exists since the directory is unique and temporary. Instead the test program suggest to me the following, which is also apparently bogus:
Unknown testdata for function queryOnInvalidDatabase: '0_QSQLITE@/tmp/tst_qsqlquery-uElocV/foo.db()' Available testdata: 0_QSQLITE@/tmp/tst_qsqlquery-WxHaaA/foo.db
Solution: the data tags shouldn't contain the "-XXXXXX" random string in their name.
Attachments
Issue Links
- relates to
-
QTBUG-100244 Running a testcase on an unknown datatag should fail
-
- Closed
-
For Gerrit Dashboard: QTBUG-100245 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
432147,3 | tst_QSql*/sqlite: Don't use random output in the datatags | dev | qt/qtbase | Status: MERGED | +2 | 0 |
438877,2 | tst_QSql*/sqlite: Don't use random output in the datatags | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |
438959,2 | tst_QSql*/sqlite: Don't use random output in the datatags | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |