gcenforcer-dylib-requiresgc.m 922 B

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