test_strace_result_has_raw_log fails on maverick

Bug #626679 reported by Martin Pool
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Martin Pool

Bug Description

I suspect this is broken by maverick's recent policy change not to allow you to ptrace your own processes:

FAIL: bzrlib.tests.test_strace.TestStrace.test_strace_result_has_raw_log
----------------------------------------------------------------------
_StringException: Text attachment: log
------------
265.118 opening working tree '/tmp/testbzr-a8uBDX.tmp'
------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/home/mbp/lib/python/testtools/runtest.py", line 144, in _run_user
    return fn(*args)
  File "/home/mbp/lib/python/testtools/testcase.py", line 442, in _run_test_method
    testMethod()
  File "/home/mbp/bzr/trunk/bzrlib/tests/test_strace.py", line 92, in test_strace_result_has_raw_log
    self.assertContainsRe(result.raw_log, 'myfile')
AssertionError: pattern "myfile" not found in ""

Related branches

Martin Pool (mbp)
Changed in bzr:
assignee: nobody → Martin Pool (mbp)
status: Confirmed → In Progress
tags: added: regression
Revision history for this message
Martin Pool (mbp) wrote :

strace doesn't exit with an error if it fails to ptrace (bug 627208) so to detect this case we might have to look at the error message.

It's a bit silly that the strace code doesn't seem to actually be used by any tests other than its own, but it's probably worth keeping.

Revision history for this message
Martin Pool (mbp) wrote :
John A Meinel (jameinel)
Changed in bzr:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.