all.T 510 Bytes
Newer Older
Austin Seipp's avatar
Austin Seipp committed
1
2
3
4
5
6
7
8
def if_not_platform(platforms, f):
    if not (config.platform in platforms):
       return f
    else:
       return normal

skip_if_not_osx = if_not_platform(['i386-apple-darwin','x86_64-apple-darwin'], skip)

9
10
11
12
test('objc-hi',
     [ skip_if_not_osx,
       objc_src,
       expect_fail_for(['ghci']) ],
Ian Lynagh's avatar
Ian Lynagh committed
13
     compile_and_run, ['-framework Foundation'])
14

15
16
17
18
test('objcpp-hi',
     [ skip_if_not_osx,
       objcpp_src,
       expect_fail_for(['ghci']) ],
19
     compile_and_run, ['-framework Foundation -lstdc++'])