[Boost-bugs] [Boost C++ Libraries] #3481: Boost Testing doesn't work under Sun Solaris Containers

Subject: [Boost-bugs] [Boost C++ Libraries] #3481: Boost Testing doesn't work under Sun Solaris Containers
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-09-23 05:21:52


#3481: Boost Testing doesn't work under Sun Solaris Containers
---------------------------------------------+------------------------------
 Reporter: ranko.veselinovic@… | Owner: rogeeff
     Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: test
  Version: Boost 1.40.0 | Severity: Showstopper
 Keywords: |
---------------------------------------------+------------------------------
 In the function under_debugger() (debug.ipp) the terminating condition for
 the while loop is
 pid != 0, which is for a normal solaris installation correct.

 But under a container the init-pid is zsched, which doesn't have the
 pid==1 and the ppid==0.
 So you have to test for ppid == pid.

 The following patch should fix the problem.

 $ diff -Nru boost/test/impl/debug.ipp.orig boost/test/impl/debug.ipp
 --- boost/test/impl/debug.ipp.orig 2009-09-21 15:36:06.442325869
 +0200
 +++ boost/test/impl/debug.ipp 2009-09-21 15:36:39.606341269 +0200
 @@ -653,7 +653,7 @@
          if( dbg_list.find( pi.binary_name() ) != const_string::npos )
              return true;

 - pid = pi.parent_pid();
 + pid = (pi.parent_pid() == pid ? 0 : pi.parent_pid());
      }

      return false;


 Regards
 Ranko

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3481>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC