From 7a671e21b9216503edca37c4c956aef38eb7f9aa Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Mon, 20 Feb 2017 09:18:40 +0530 Subject: objc tests: Disable nsstring test on Clang + Linux The GNUstep runtime shipped in Linux distros is GCC-specific and won't work with clang. You have to build it separately and set the paths yourself. In file included from /root/b 05ywf6dg/stringprog@exe/stringprog-unity.m:1: In file included from /root/b 05ywf6dg/../test cases/objc/2 nsstring/stringprog.m:1: In file included from /usr/include/GNUstep/Foundation/NSString.h:89: In file included from /usr/include/GNUstep/Foundation/NSObject.h:30: In file included from /usr/include/GNUstep/Foundation/NSObjCRuntime.h:213: /usr/include/GNUstep/GNUstepBase/GSObjCRuntime.h:58:11: fatal error: 'objc/objc.h' file not found #include ^ On my system, I get the same error and the objc.h path is: /usr/lib/gcc/x86_64-redhat-linux/6.3.1/include/objc/objc.h --- test cases/objc/2 nsstring/meson.build | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test cases/objc') diff --git a/test cases/objc/2 nsstring/meson.build b/test cases/objc/2 nsstring/meson.build index bc997bce3..ec496a2ae 100644 --- a/test cases/objc/2 nsstring/meson.build +++ b/test cases/objc/2 nsstring/meson.build @@ -4,6 +4,9 @@ if host_machine.system() == 'darwin' dep = dependency('appleframeworks', modules : 'foundation') else dep = dependency('gnustep') + if host_machine.system() == 'linux' and meson.get_compiler('objc').get_id() == 'clang' + error('MESON_SKIP_TEST: GNUstep is broken on Linux with Clang') + endif endif exe = executable('stringprog', 'stringprog.m', dependencies : dep) test('stringtest', exe) -- cgit v1.2.3