diff options
Diffstat (limited to 'meson/test cases/failing/71 override used')
4 files changed, 18 insertions, 0 deletions
diff --git a/meson/test cases/failing/71 override used/meson.build b/meson/test cases/failing/71 override used/meson.build new file mode 100644 index 000000000..61885bba1 --- /dev/null +++ b/meson/test cases/failing/71 override used/meson.build @@ -0,0 +1,5 @@ +project('overridde an already found exe', 'c') + +old = find_program('something.py') +replacement = find_program('other.py') +meson.override_find_program('something.py', replacement) diff --git a/meson/test cases/failing/71 override used/other.py b/meson/test cases/failing/71 override used/other.py new file mode 100755 index 000000000..f62ba960d --- /dev/null +++ b/meson/test cases/failing/71 override used/other.py @@ -0,0 +1,3 @@ +#!/usr/bin/env python3 + +print('Doing something else.') diff --git a/meson/test cases/failing/71 override used/something.py b/meson/test cases/failing/71 override used/something.py new file mode 100755 index 000000000..64c9454c3 --- /dev/null +++ b/meson/test cases/failing/71 override used/something.py @@ -0,0 +1,3 @@ +#!/usr/bin/env python3 + +print('Doing something.') diff --git a/meson/test cases/failing/71 override used/test.json b/meson/test cases/failing/71 override used/test.json new file mode 100644 index 000000000..6c734e432 --- /dev/null +++ b/meson/test cases/failing/71 override used/test.json @@ -0,0 +1,7 @@ +{ + "stdout": [ + { + "line": "test cases/failing/71 override used/meson.build:5:6: ERROR: Tried to override finding of executable \"something.py\" which has already been found." + } + ] +} |