aboutsummaryrefslogtreecommitdiff
path: root/unittests/allplatformstests.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-08-31 18:59:10 -0400
committerEli Schwartz <eschwartz@archlinux.org>2021-09-01 15:42:39 -0400
commit0b63dff3badf4f728d5dadda81dbef8de67ba164 (patch)
tree287538d78c50c49068ff90f6c325a837821be270 /unittests/allplatformstests.py
parentd67850b45e9ce323405e80aacee872049a3bc389 (diff)
downloadmeson-0b63dff3badf4f728d5dadda81dbef8de67ba164.zip
meson-0b63dff3badf4f728d5dadda81dbef8de67ba164.tar.gz
meson-0b63dff3badf4f728d5dadda81dbef8de67ba164.tar.bz2
run_target: do not yield broken names with subdirs
A run_target object created in a subdir/meson.build always has a ninja rule name of "name", not "subdir/name". Fixes #9175
Diffstat (limited to 'unittests/allplatformstests.py')
-rw-r--r--unittests/allplatformstests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py
index 828ca58..fd88a27 100644
--- a/unittests/allplatformstests.py
+++ b/unittests/allplatformstests.py
@@ -3076,6 +3076,8 @@ class AllPlatformTests(BasePlatformTests):
self.run_target('build-all')
self.assertPathExists(os.path.join(self.builddir, 'prog' + exe_suffix))
self.assertPathExists(os.path.join(self.builddir, 'hello.txt'))
+ out = self.run_target('aliased-run')
+ self.assertIn('a run target was here', out)
def test_configure(self):
testdir = os.path.join(self.common_test_dir, '2 cpp')