[glom/glom-1-30] test_selfhosting_new_then_alter_table: Fix the build.



commit ba6e2765bf2fb77d3139ac7dcb54c0eb93ce28d0
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Mar 10 14:10:35 2016 +0100

    test_selfhosting_new_then_alter_table: Fix the build.

 tests/test_selfhosting_new_then_alter_table.cc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tests/test_selfhosting_new_then_alter_table.cc b/tests/test_selfhosting_new_then_alter_table.cc
index bfa94e5..9c28524 100644
--- a/tests/test_selfhosting_new_then_alter_table.cc
+++ b/tests/test_selfhosting_new_then_alter_table.cc
@@ -60,7 +60,8 @@ static bool do_test(Glom::Document::HostingMode hosting_mode, const Glib::ustrin
   }
 
   const auto table_names = Glom::DbUtils::get_table_names_from_database();
-  if(Glom::Utils::find_exists(table_names, renamed_table_name)) {
+  if(std::find(table_names.begin(), table_names.end(), renamed_table_name)
+    != table_names.end()) {
     std::cerr << G_STRFUNC << ": Failure: The dropped table seems to still exist." << std::endl;
     return false;
   }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]