[glom/glom-1-20] test_document_load: Fix a typo.



commit 7a383b0197fd764033275973e33ad5ef902c8258
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.
    
    Conflicts:
    
    	ChangeLog

 ChangeLog                   |    6 ++++++
 tests/test_document_load.cc |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 11e1086..3fb8dd7 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-05  Murray Cumming  <murrayc murrayc com>
 
 	DTD: formatting: Mention choices_restricted to fix make check.
diff --git a/tests/test_document_load.cc b/tests/test_document_load.cc
index d2ba126..8c0a009 100644
--- a/tests/test_document_load.cc
+++ b/tests/test_document_load.cc
@@ -289,7 +289,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]