Commit Graph

6 Commits

Author SHA1 Message Date
Mike Ash
3000580367 [Test] Only run objc-getClass.cpp against freshly built runtimes.
This tests fixes that aren't available on older runtimes used for back deployment testing.

rdar://84995894
2021-11-04 09:44:06 -04:00
Alastair Houghton
0cd79c5243 [Test] Minor fixes to objc-getclass demangler test
Don't fail the test if the OS version is too old (but still log).

Also, explicitly link with the ObjC library.

rdar://82139957
2021-08-20 11:34:08 +01:00
Alastair Houghton
3fd65ddb7d [Demangler][Tests] Fix linker path to use target-sdk-name.
The swift library directory is named using the SDK name, not the ABI name;
this shows up on iphonesimulator builds, where the two are different.
2021-08-17 16:11:26 +01:00
Alastair Houghton
4b2e31654e [Demangler][Tests] Re-add getObjcClassByMangledName test.
This was reverted in ec3ccd72 because it broke the iOS simulator build.
2021-08-17 09:46:21 +01:00
Mishal Shah
34350e45cd Revert "[Demangler][Tests] Add an explicit test for getObjCClassByMangledName." 2021-08-16 14:00:39 -07:00
Alastair Houghton
8db56f09a3 [Demangler][Tests] Add an explicit test for getObjCClassByMangledName.
Added a special test for getObjCClassByMangledName; this needs testing
separately as it uses the DecodedMetadataBuilder, which doesn't get exercised
by the normal demangling tests.

Added all the test cases from rdar://63485806, rdar://63488139, rdar://63496478,
rdar://63410196 and rdar://68449341.  The test cases from rdar://63485806 are
disabled for now because the problem there is the error handling mechanism (or
lack thereof), rather than us not handling errors.

Fixes the remaining cases from

rdar://63488139
rdar://63496478
2021-08-04 16:21:32 +01:00