aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/failing/71 override used
diff options
context:
space:
mode:
authorAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
committerAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
commitaf1a266670d040d2f4083ff309d732d648afba2a (patch)
tree2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/failing/71 override used
parente02cda008591317b1625707ff8e115a4841aa889 (diff)
Add submodule dependency filesHEADmaster
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/failing/71 override used')
-rw-r--r--meson/test cases/failing/71 override used/meson.build5
-rwxr-xr-xmeson/test cases/failing/71 override used/other.py3
-rwxr-xr-xmeson/test cases/failing/71 override used/something.py3
-rw-r--r--meson/test cases/failing/71 override used/test.json7
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."
+ }
+ ]
+}