~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_strace.py

(gz) Fix test failure on alpha by correcting format string for
 gc_chk_sha1_record (Martin [gz])

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    strace,
23
23
    tests,
24
24
    )
25
 
from bzrlib.strace import strace_detailed, StraceResult
26
 
from bzrlib.tests.features import (
27
 
    strace_feature,
28
 
    )
 
25
from bzrlib.strace import StraceFeature, strace_detailed, StraceResult
29
26
 
30
27
 
31
28
class TestStrace(tests.TestCaseWithTransport):
32
29
 
33
 
    _test_needs_features = [strace_feature]
 
30
    _test_needs_features = [StraceFeature]
34
31
 
35
32
    def setUp(self):
36
33
        # NB: see http://pad.lv/626679 and
50
47
        # restriction.
51
48
        active = threading.activeCount()
52
49
        if active > 1: # There is always the main thread at least
53
 
            self.knownFailure(
 
50
            raise tests.KnownFailure(
54
51
                '%d active threads, bug #103133 needs to be fixed.' % active)
55
52
 
56
53
    def strace_detailed_or_skip(self, *args, **kwargs):