[Pkg-running-devel] [antpm] 02/20: tests: satisfy coverity

Kristof Ralovich ralovich-guest at moszumanska.debian.org
Sun Jun 28 12:26:49 UTC 2015


This is an automated email from the git hooks/post-receive script.

ralovich-guest pushed a commit to branch upstream
in repository antpm.

commit 5517fc0e554c77aeab28deb5f24ebf88a86a44d4
Author: RALOVICH, Kristof <tade60 at freemail.hu>
Date:   Sun May 31 17:36:10 2015 +0200

    tests: satisfy coverity
    
    CID 44330 (#1 of 1): Structurally dead code (UNREACHABLE)
---
 src/tests/sm1.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tests/sm1.cpp b/src/tests/sm1.cpp
index 96d5c8c..b49dc85 100644
--- a/src/tests/sm1.cpp
+++ b/src/tests/sm1.cpp
@@ -146,7 +146,7 @@ BOOST_AUTO_TEST_CASE(test_asio)
     // The io_service runs in a background thread to perform filtering.
     boost::thread bgthread(boost::bind(run, &io_service));
 
-    for (;;)
+    //for (;;)
     {
       // Collect request from user.
       //std::cout << "Enter a string: ";
@@ -169,7 +169,7 @@ BOOST_AUTO_TEST_CASE(test_asio)
       BOOST_CHECK(reply.size()==6);
       BOOST_CHECK(reply[0]=='A');
 
-      break;
+      //break;
     }
 
     io_service.stop();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-running/antpm.git



More information about the Pkg-running-devel mailing list