@@ -45,9 +45,24 @@ def test_type_lookup(self):
4545 "type lookup PleaseDontBeARealTypeThatExists" ,
4646 substrs = ["no type was found matching 'PleaseDontBeARealTypeThatExists'" ],
4747 )
48- self .expect ("type lookup MyCPPClass" , substrs = ["setF" , "float getF" ])
49- self .expect ("type lookup MyClass" , substrs = ["setF" , "float getF" ])
5048 self .expect (
5149 "type lookup MyObjCClass" ,
5250 substrs = ["@interface MyObjCClass" , "int x" , "int y" ],
5351 )
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