Reorder and change test macros
[platform/core/test/security-tests.git] / tests / common / db_sqlite.cpp
index e24003a..f6852aa 100644 (file)
@@ -42,15 +42,15 @@ void Sqlite3DBase::open(void)
         return;
 
     int ret = sqlite3_open_v2(m_db_path.c_str(), &m_db_handle, m_flags, VFS_NOT_USED);
-    RUNNER_ASSERT_MSG_BT(m_db_handle, "Error opening the database: Unable to allocate memory.");
-    RUNNER_ASSERT_MSG_BT(ret == SQLITE_OK, "Error opening the database: " <<
+    RUNNER_ASSERT_MSG(m_db_handle, "Error opening the database: Unable to allocate memory.");
+    RUNNER_ASSERT_MSG(ret == SQLITE_OK, "Error opening the database: " <<
                          sqlite3_errmsg(m_db_handle));
 }
 
 void Sqlite3DBase::close(void)
 {
     int ret = sqlite3_close(m_db_handle);
-    RUNNER_ASSERT_MSG_BT(ret == SQLITE_OK, "Error closing the database: " <<
+    RUNNER_ASSERT_MSG(ret == SQLITE_OK, "Error closing the database: " <<
                          sqlite3_errmsg(m_db_handle));
 
     m_db_handle = NULL;
@@ -72,7 +72,7 @@ void Sqlite3DBase::execute(const std::string& sql_query, Sqlite3DBaseSelectResul
     }
     sqlite3_free(tmp);
 
-    RUNNER_ASSERT_MSG_BT(ret == SQLITE_OK || ret == SQLITE_ABORT, "Error executing statement <" <<
+    RUNNER_ASSERT_MSG(ret == SQLITE_OK || ret == SQLITE_ABORT, "Error executing statement <" <<
                          sql_query << "> : " << errmsg);
 }