[asterisk-scf-commits] asterisk-scf/integration/test-utf.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Fri Apr 15 12:17:06 CDT 2011


branch "master" has been updated
       via  b766c0ae51f7363ca071a1901843d44ff1939052 (commit)
      from  de07f0a03c963c082b8ba075ef40da34b30547de (commit)

Summary of changes:
 src/TestUtf.cpp |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit b766c0ae51f7363ca071a1901843d44ff1939052
Author: Ken Hunt <ken.hunt at digium.com>
Date:   Fri Apr 15 12:16:34 2011 -0500

    Linux compilation issues addressed.

diff --git a/src/TestUtf.cpp b/src/TestUtf.cpp
index 49ba57f..48e3f73 100644
--- a/src/TestUtf.cpp
+++ b/src/TestUtf.cpp
@@ -127,6 +127,7 @@ const char ChineseBytes[] =
  */
 std::string getLastLoggedString()
 {
+    std::string content;
     try
     {
         vector<string> lines;
@@ -147,17 +148,18 @@ std::string getLastLoggedString()
 
         size_t marker = line.find_first_of(":");
         BOOST_CHECK(marker != std::string::npos);
-        std::string content = line.substr(marker+1, line.length());
+
+        content = line.substr(marker+1, line.length());
         BOOST_CHECK(content.length() > 0);
         boost::trim(content);
 
-        return(content);
     }
     catch (const std::exception &e)
     {
         BOOST_FAIL(e.what());
     }
 
+    return(content);
 }
 
 /**
@@ -252,6 +254,8 @@ BOOST_AUTO_TEST_CASE(PyConfigTest)
          // The return value will be platform specific. :-(
          int val = std::system(command.c_str());
 
+         BOOST_MESSAGE("Return val from system command: " + val);
+
          BOOST_CHECK(verifyLog(GreekBytes));
     }
     catch (const std::exception &e)

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


-- 
asterisk-scf/integration/test-utf.git



More information about the asterisk-scf-commits mailing list