]> git.saurik.com Git - apple/objc4.git/blob - test/gcenforcer-dylib-requiresgc.m
objc4-787.1.tar.gz
[apple/objc4.git] / test / gcenforcer-dylib-requiresgc.m
1 // gc-off app loading gc-required dylib: should crash
2 // linker sees librequiresgc.fake.dylib, runtime uses librequiresgc.dylib
3
4 /*
5 fixme disabled in BATS because of gcfiles
6 TEST_CONFIG OS=macosx BATS=0
7 TEST_CRASHES
8
9 TEST_RUN_OUTPUT
10 dyld: Library not loaded: librequiresgc\.dylib
11 Referenced from: .*gcenforcer-dylib-requiresgc.exe
12 Reason: no suitable image found\. Did find:
13 (.*librequiresgc\.dylib: cannot load '.*librequiresgc\.dylib' because Objective-C garbage collection is not supported(\n)?)+
14 librequiresgc.dylib: cannot load 'librequiresgc\.dylib' because Objective-C garbage collection is not supported(
15 .*librequiresgc\.dylib: cannot load '.*librequiresgc\.dylib' because Objective-C garbage collection is not supported(\n)?)*
16 END
17
18 TEST_BUILD
19 cp $DIR/gcfiles/librequiresgc.dylib .
20 $C{COMPILE} $DIR/gc-main.m -x none $DIR/gcfiles/librequiresgc.fake.dylib -o gcenforcer-dylib-requiresgc.exe
21 END
22 */