[glom/glom-1-30] tests: document_load_and_change: Use the correct table name.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom/glom-1-30] tests: document_load_and_change: Use the correct table name.
- Date: Tue, 20 Jun 2017 19:13:58 +0000 (UTC)
commit 97944e49a2d2e3bec5f720c5770951fca7d9209a
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 | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/test_document_load_and_change.cc b/tests/test_document_load_and_change.cc
index ff51a25..bbc8c49 100644
--- a/tests/test_document_load_and_change.cc
+++ b/tests/test_document_load_and_change.cc
@@ -144,21 +144,21 @@ 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_invocies, relationship_name_original))
{
std::cerr << G_STRFUNC << ": Failure: The original relationship name still exists." << std::endl;
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." << std::endl;
return EXIT_FAILURE;
}
//Check that the old relationship name is not used.
- std::shared_ptr<const Glom::LayoutItem_Field> field_on_layout =
- get_field_on_layout(document, table_name, "contacts", "name_full");
+ std::shared_ptr<const Glom::LayoutItem_Field> field_on_layout =
+ 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]