Index: tests/objc_sync/Makefile ================================================================== --- tests/objc_sync/Makefile +++ tests/objc_sync/Makefile @@ -20,8 +20,8 @@ rm -f libobjfw.so.0 libobjfw.so.0.1 libobjfw.dll libobjfw.dylib; \ exit $$EXIT include ../../buildsys.mk -CPPFLAGS += -I../../src -I../.. +CPPFLAGS += -I../../src/runtime -I../../src -I../.. LIBS := -L../../src -lobjfw ${LIBS} LD = ${OBJC} Index: tests/objc_sync/test.m ================================================================== --- tests/objc_sync/test.m +++ tests/objc_sync/test.m @@ -28,19 +28,19 @@ @end @implementation MyThread - main { - printf("[%s] Entering #1\n", [object cString]); - @synchronized (lock) { - printf("[%s] Entering #2\n", [object cString]); - @synchronized (lock) { - printf("[%s] Hello!\n", [object cString]); - } - printf("[%s] Left #2\n", [object cString]); - } - printf("[%s] Left #1\n", [object cString]); + printf("[%s] Entering #1\n", [object UTF8String]); + @synchronized (lock) { + printf("[%s] Entering #2\n", [object UTF8String]); + @synchronized (lock) { + printf("[%s] Hello!\n", [object UTF8String]); + } + printf("[%s] Left #2\n", [object UTF8String]); + } + printf("[%s] Left #1\n", [object UTF8String]); return nil; } @end