[glom] test_document_load: Fix a typo.



commit 4e8136dac257770e7f7d794f1d0996a12140b639
Author: Murray Cumming <murrayc murrayc com>
Date:   Sat Jan 7 22:40:31 2012 +0100

    test_document_load: Fix a typo.
    
    	* tests/test_document_load.cc: Check the correct variable.

 ChangeLog                   |    6 ++++++
 tests/test_document_load.cc |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8a6d83a..d0276ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-01-07  Murray Cumming  <murrayc murrayc com>
+
+	test_document_load: Fix a typo.
+
+	* tests/test_document_load.cc: Check the correct variable.
+
 2012-01-06  Murray Cumming  <murrayc murrayc com>
 
 	Replace most uses of g_object_set() with C++ code.
diff --git a/tests/test_document_load.cc b/tests/test_document_load.cc
index 840a8d8..2b9dda9 100644
--- a/tests/test_document_load.cc
+++ b/tests/test_document_load.cc
@@ -321,7 +321,7 @@ int main()
   }
 
   const Glom::sharedptr<const Glom::Report> report = document.get_report("contacts", "by_country_by_town");
-  if(!print_layout)
+  if(!report)
   {
     std::cerr << "Failure: Could not get an expected report." << std::endl;
     return false;



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