summaryrefslogtreecommitdiffstats
path: root/tests/auto/sql
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2016-10-19 15:05:08 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2018-07-05 13:39:02 +0000
commit2afa6e5f947e2d497e9c46bbe23c062b622cee64 (patch)
tree5c0a18291422846b5c48163c98f44a244f10f67d /tests/auto/sql
parentb14527f529e7889319440125b717e6677746eaac (diff)
tst_QSqlThread: match #if-ery on declaration to use
Variable was declared outside #if-ery but only used inside, leading to warnings when the define wasn't set. Change-Id: Iad6a236bdf76b8ca0a58a84509d19f7e1a3e2df2 Reviewed-by: Mikhail Svetkin <mikhail.svetkin@qt.io> Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'tests/auto/sql')
-rw-r--r--tests/auto/sql/kernel/qsqlthread/tst_qsqlthread.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/sql/kernel/qsqlthread/tst_qsqlthread.cpp b/tests/auto/sql/kernel/qsqlthread/tst_qsqlthread.cpp
index 5482dc393b..09a842eb83 100644
--- a/tests/auto/sql/kernel/qsqlthread/tst_qsqlthread.cpp
+++ b/tests/auto/sql/kernel/qsqlthread/tst_qsqlthread.cpp
@@ -401,8 +401,10 @@ void tst_QSqlThread::readWriteThreading()
QTRY_VERIFY_WITH_TIMEOUT(threadFinishedCount >= 2, 10000);
}
+#ifdef QOCI_THREADED
// run with n threads in parallel. Change this constant to hammer the poor DB server even more
static const int maxThreadCount = 4;
+#endif
void tst_QSqlThread::readFromSingleConnection()
{