~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_breakin.py

  • Committer: Vincent Ladeuil
  • Date: 2009-09-08 03:20:31 UTC
  • mfrom: (4676.2.3 freebsd-regressions)
  • mto: This revision was merged to the branch mainline in revision 4678.
  • Revision ID: v.ladeuil+lp@free.fr-20090908032031-7f4x11h3evc4bx82
Fix some test failures on FreeBSD

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
                #       instead. Most notably, the WNOHANG isn't allowed, so
128
128
                #       this can hang indefinitely.
129
129
                pid_killed, returncode = os.waitpid(pid, opts)
130
 
                if (pid_killed, returncode) != (0, 0):
 
130
                if pid_killed != 0 and returncode != 0:
131
131
                    if sig is not None:
132
132
                        # high bit in low byte says if core was dumped; we
133
133
                        # don't care