[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdb] autotests: MissingTableTest: call again with ok == nullptr and verify (silent)
From:       Jaroslaw Staniek <null () kde ! org>
Date:       2018-04-09 9:54:14
Message-ID: E1f5TV8-0007jL-Qr () code ! kde ! org
[Download RAW message or body]

Git commit 642e5196dc968ed16177380479ccc9cb1d8e5532 by Jaroslaw Staniek.
Committed on 26/03/2018 at 22:22.
Pushed by staniek into branch 'master'.

MissingTableTest: call again with ok == nullptr and verify

GIT_SILENT

M  +5    -0    autotests/MissingTableTest.cpp

https://commits.kde.org/kdb/642e5196dc968ed16177380479ccc9cb1d8e5532

diff --git a/autotests/MissingTableTest.cpp b/autotests/MissingTableTest.cpp
index c94c6040..1332d771 100644
--- a/autotests/MissingTableTest.cpp
+++ b/autotests/MissingTableTest.cpp
@@ -64,6 +64,11 @@ void MissingTableTest::testListTables()
     bool ok;
     QStringList foundTableNames = m_utils.connection->tableNames(alsoSystemTables, &ok);
     QVERIFY(ok);
+
+    // call again with ok == nullptr
+    QCOMPARE(foundTableNames, m_utils.connection->tableNames(alsoSystemTables));
+
+    // make sure missing table is not present
     std::sort(foundTableNames.begin(), foundTableNames.end());
     const QStringList expectedTables(
         { "cars", "kexi__db", "kexi__fields", "kexi__objectdata", "kexi__objects" });

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic