aboutsummaryrefslogtreecommitdiff
path: root/test cases/failing/19 target clash/meson.build
blob: ca09fb56893333e2d5cf9773a7a0a9bd92c6942d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
project('clash', 'c')

# This setup causes a namespace clash when two Meson targets would
# produce a Ninja targets with the same name. It only works on
# unix, because on Windows the target has a '.exe' suffix.
#
# This test might fail to work on different backends or when
# output location is redirected.

if host_machine.system() == 'windows' or host_machine.system() == 'cygwin'
  error('This is expected.')
endif

executable('clash', 'clash.c')
run_target('clash', command: ['echo', 'clash 1'])