Revert OLD cmake policy & tested commented out

This commit is contained in:
Sébastien Rombauts 2019-03-02 23:46:34 +01:00
parent df7d113a3b
commit 804879d27d
2 changed files with 1 additions and 2 deletions

View File

@ -5,7 +5,6 @@
# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
# or copy at http://opensource.org/licenses/MIT)
cmake_minimum_required(VERSION 2.8.12) # first version with add_compile_options()
cmake_policy(SET CMP0048 OLD)
project(SQLiteCpp)
message (STATUS "CMake version: ${CMAKE_VERSION}")

View File

@ -283,7 +283,7 @@ TEST(Database, encryptAndDecrypt) {
// Reopen the database file and try to use it
EXPECT_FALSE(SQLite::Database::isUnencrypted("test.db3"));
SQLite::Database db("test.db3", SQLite::OPEN_READONLY);
// Decrypt the database
EXPECT_THROW(db.tableExists("test"), SQLite::Exception);
db.key("123secret");
EXPECT_TRUE(db.tableExists("test"));
} // Close DB test.db3