[glom/gtkmm4v4] tests: document_load_and_change: Use the correct table name.



commit 4a0e91d51e08d95898cf62ea5f979da689d8b860
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Jun 20 20:22:35 2017 +0200

    tests: document_load_and_change: Use the correct table name.
    
    This bad test was revealed by the correction to return EXIT_SUCCESS,
    instead of false, from main().

 tests/test_document_load_and_change.cc |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/test_document_load_and_change.cc b/tests/test_document_load_and_change.cc
index 590cb24..b953cac 100644
--- a/tests/test_document_load_and_change.cc
+++ b/tests/test_document_load_and_change.cc
@@ -143,13 +143,13 @@ int main()
     const Glib::ustring relationship_name_new = "newrelationshipname";
     document->change_relationship_name(table_name_invoices,
       relationship_name_original, relationship_name_new);
-    if(document->get_relationship(table_name, relationship_name_original))
+    if(document->get_relationship(table_name_invoices, relationship_name_original))
     {
       std::cerr << G_STRFUNC << ": Failure: The original relationship name still exists.\n";
       return EXIT_FAILURE;
     }
 
-    if(!document->get_relationship(table_name, relationship_name_new))
+    if(!document->get_relationship(table_name_invoices, relationship_name_new))
     {
       std::cerr << G_STRFUNC << ": Failure: The new relationship name does not exist.\n";
       return EXIT_FAILURE;
@@ -157,7 +157,7 @@ int main()
 
     //Check that the old relationship name is not used.
     auto field_on_layout =
-      get_field_on_layout(document, table_name, "contacts", "name_full");
+      get_field_on_layout(document, table_name_invoices, "contacts", "name_full");
     g_assert(field_on_layout);
     if(field_on_layout->get_relationship_name() != relationship_name_new)
     {


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