Commit Graph

7 Commits

Author SHA1 Message Date
Daniel Rodríguez Troitiño
8f0382c109 [test] Replace swift_obj_root for alternates that work in LLVM unified builds (#66167)
In LLVM unified builds `%swift_obj_root` points to `<LLVM build dir>/tools/swift`,
and folders like `bin`, `lib` and `share` are not under `swift_obj_root`, which
makes some tests fail.

For the cases in which `%swift_obj_root/lib` was used, replace it by
using `%swift-lib-dir` instead. Replicate `%swift-lib-dir` to create
`%swift-bin-dir` and `%swift-share-dir`, and use those instead of
`%swift_obj_root/bin` and `%swift_obj_root/share`.

This alternates work both in Swift build-script builds and also in LLVM
unified builds.
2023-05-26 08:39:31 -07:00
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