diff --git a/lldb/packages/Python/lldbsuite/test/macosx/DBGSourcePathRemapping/TestDSYMSourcePathRemapping.py b/lldb/packages/Python/lldbsuite/test/macosx/DBGSourcePathRemapping/TestDSYMSourcePathRemapping.py --- a/lldb/packages/Python/lldbsuite/test/macosx/DBGSourcePathRemapping/TestDSYMSourcePathRemapping.py +++ b/lldb/packages/Python/lldbsuite/test/macosx/DBGSourcePathRemapping/TestDSYMSourcePathRemapping.py @@ -35,6 +35,7 @@ import re self.assertTrue(re.match(r'[0-9a-fA-F-]+', uuid)) plist = os.path.join(dsym, 'Contents', 'Resources', uuid + '.plist') + botdir_realpath = os.path.realpath(botdir) with open(plist, 'w') as f: f.write('\n') f.write('\n') @@ -44,6 +45,9 @@ f.write(' \n') f.write(' ' + botdir + '\n') f.write(' ' + userdir + '\n') + if botdir_realpath != botdir: + f.write(' ' + botdir_realpath + '\n') + f.write(' ' + userdir + '\n') f.write(' \n') f.write('\n') f.write('\n')