@@ -45,9 +45,24 @@ def test_type_lookup(self):
45
45
"type lookup PleaseDontBeARealTypeThatExists" ,
46
46
substrs = ["no type was found matching 'PleaseDontBeARealTypeThatExists'" ],
47
47
)
48
- self .expect ("type lookup MyCPPClass" , substrs = ["setF" , "float getF" ])
49
- self .expect ("type lookup MyClass" , substrs = ["setF" , "float getF" ])
50
48
self .expect (
51
49
"type lookup MyObjCClass" ,
52
50
substrs = ["@interface MyObjCClass" , "int x" , "int y" ],
53
51
)
52
+
53
+ @expectedFailureAll (setting = ('plugin.typesystem.clang.experimental-redecl-completion' , 'true' ))
54
+ @skipUnlessDarwin
55
+ @skipIf (archs = ["i386" ])
56
+ @skipIfDarwinEmbedded # swift crash inspecting swift stdlib with little other swift loaded <rdar://problem/55079456>
57
+ def test_type_lookup (self ):
58
+ """Test type lookup command."""
59
+ self .build ()
60
+ self .runCmd ("file " + self .getBuildArtifact ("a.out" ), CURRENT_EXECUTABLE_SET )
61
+
62
+ lldbutil .run_break_set_by_file_and_line (
63
+ self , "main.mm" , self .line , num_expected_locations = 1 , loc_exact = True
64
+ )
65
+
66
+ self .runCmd ("run" , RUN_SUCCEEDED )
67
+ self .expect ("type lookup MyCPPClass" , substrs = ["setF" , "float getF" ])
68
+ self .expect ("type lookup MyClass" , substrs = ["setF" , "float getF" ])
0 commit comments