aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-11-29 14:58:08 -0800
committerJussi Pakkanen <jpakkane@gmail.com>2017-11-30 22:19:54 +0200
commitd573a29bdaf64026e00b5c169f58c54d004e5244 (patch)
tree530c3d3883ae8b02767f6c0bfe609db9f3549f8d /mesonbuild/compilers
parentcabbb30ab457e30084c8e125fe394c1801048b67 (diff)
downloadmeson-d573a29bdaf64026e00b5c169f58c54d004e5244.zip
meson-d573a29bdaf64026e00b5c169f58c54d004e5244.tar.gz
meson-d573a29bdaf64026e00b5c169f58c54d004e5244.tar.bz2
mtest: Chdir into the build directory before running tests with -C
When `ninja -C builddir/ test` is run, ninja will change into the build dir before starting, but `meson test -C builddir/` does not. This is important because meson does not use (for good reasons) absolute paths, which means if a test case needs to be passed as an argument a file name that is part of the build process, it will be relative builddir. Without changing into the builddir the path will not exist (or worse, point at the wrong thing), and test will not behave as intended. To fix this mtest will change directory before starting tests, and will change back after all tests have been finished. Fixes #2710
Diffstat (limited to 'mesonbuild/compilers')
0 files changed, 0 insertions, 0 deletions