[lldb/test] Relax NSBundle formatter test for Darwin embedded platforms (#193659)

Some Foundation APIs have been migrated from Objective-C to Swift while
maintaining backward compatibility. For instance, that can cause
`NSBundle` created via `initWithURL:` to format without the `@"..."`
prefix.

Match the path string without requiring the @ prefix so the test passes
with both the ObjC and Swift implementations

rdar://175394563

Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
This commit is contained in:
Med Ismail Bennani
2026-04-23 07:02:02 -07:00
committed by GitHub
parent 0ff393f5da
commit 8212cab412

View File

@@ -31,7 +31,7 @@ class ObjCDataFormatterNSBundle(ObjCDataFormatterTestCase):
"(NSBundle *) bundle_string = ",
' @"/System/Library/Frameworks/Accelerate.framework"',
"(NSBundle *) bundle_url = ",
' @"/System/Library/Frameworks/Foundation.framework"',
' "/System/Library/Frameworks/Foundation.framework"',
"(NSBundle *) main_bundle = ",
"data-formatter-objc",
],