File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,17 @@ def test_access_type(self):
40
40
declarations .ACCESS_TYPES .PUBLIC )
41
41
public_members = declarations .matcher .find (criteria , self .global_ns )
42
42
public_members = [d for d in public_members if not d .is_artificial ]
43
- self .assertTrue (17 == len (public_members ))
43
+ if "CastXML" in utils .xml_generator :
44
+ nbr = len (public_members )
45
+ self .assertTrue (17 == nbr or 21 == nbr )
46
+ if nbr == 21 :
47
+ # We are using llvm 3.9, see bug #32. Make sure the 4 names
48
+ # are still there
49
+ ll = ["isa" , "flags" , "str" , "length" ]
50
+ for l in ll :
51
+ self .assertTrue (l in [mbr .name for mbr in public_members ])
52
+ else :
53
+ self .assertTrue (17 == len (public_members ))
44
54
45
55
def test_or_matcher (self ):
46
56
criteria1 = declarations .regex_matcher_t (
You can’t perform that action at this time.
0 commit comments