summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/test/lang/c/function_types/TestFunctionTypes.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/test/lang/c/function_types/TestFunctionTypes.py b/lldb/test/lang/c/function_types/TestFunctionTypes.py
index 350d3fc5160..e4680ab0189 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')
OpenPOWER on IntegriCloud