BIND 10 trac2955, updated. b70a49c18a153f40aaf129d6d3f25039e052e887 [2955] Added missing definition of static member in D2 unit test.

BIND 10 source code commits bind10-changes at lists.isc.org
Thu May 23 15:09:54 UTC 2013


The branch, trac2955 has been updated
       via  b70a49c18a153f40aaf129d6d3f25039e052e887 (commit)
      from  419690bf77f83061c4df46291b27a2a5769e1758 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b70a49c18a153f40aaf129d6d3f25039e052e887
Author: Thomas Markwalder <tmark at isc.org>
Date:   Thu May 23 11:08:53 2013 -0400

    [2955] Added missing definition of static member in D2 unit test.

-----------------------------------------------------------------------

Summary of changes:
 src/bin/d2/tests/d2_process_unittests.cc |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/d2/tests/d2_process_unittests.cc b/src/bin/d2/tests/d2_process_unittests.cc
index 8391b1c..9e6f852 100644
--- a/src/bin/d2/tests/d2_process_unittests.cc
+++ b/src/bin/d2/tests/d2_process_unittests.cc
@@ -51,7 +51,7 @@ public:
 
     /// @brief Callback that will invoke shutdown method.
     static void genShutdownCallback() {
-        D2ProcessTest::process_->shutdown();
+        process_->shutdown();
     }
 
     /// @brief Callback that throws an exception.
@@ -64,6 +64,9 @@ public:
     IOServicePtr io_service_;
 };
 
+// Define the static process instance
+DProcessPtr D2ProcessTest::process_;
+
 
 /// @brief Verifies D2Process constructor behavior.
 /// 1. Verifies that constructor fails with an invalid IOService
@@ -103,7 +106,7 @@ TEST_F(D2ProcessTest, command) {
     string args = "{ \"arg1\": 77 } ";
     isc::data::ElementPtr json = isc::data::Element::fromJSON(args);
     isc::data::ConstElementPtr answer = 
-                                process_->command("bogus_command", json); 
+                                    process_->command("bogus_command", json); 
     parseAnswer(rcode, answer);
     EXPECT_EQ(1, rcode);
 }



More information about the bind10-changes mailing list