diff --git a/lldb/test/lang/c/function_types/TestFunctionTypes.py b/lldb/test/lang/c/function_types/TestFunctionTypes.py index 350d3fc51608af4a68a9fcec91b5cdc1c430a16a..e4680ab0189d3678f45e0fdd8999f56612ac5d9d 100644 --- a/lldb/test/lang/c/function_types/TestFunctionTypes.py +++ b/lldb/test/lang/c/function_types/TestFunctionTypes.py @@ -84,8 +84,13 @@ class FunctionTypesTestCase(TestBase): self.expect("expr string_not_empty", substrs = ['(int (*)(const char *)) $0 = ', '(a.out`']) + if sys.platform.startswith("darwin"): + regexps = ['lib.*\.dylib`printf'] + else: + regexps = ['printf'] self.expect("expr (int (*)(const char*, ...))printf", - substrs = ['(int (*)(const char *, ...)) $1 = ', '(libSystem.']) + substrs = ['(int (*)(const char *, ...)) $1 = '], + patterns = regexps) self.expect("expr $1(\"Hello world\\n\")", startstr = '(int) $2 = 12')