aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-12-29 05:40:47 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2017-01-04 00:40:54 +0530
commitc8bb7f2217fdc336cab6fc4b29d561ce17518c4d (patch)
tree11170c6b26923d7f10a519d11617dd2b7de309f7 /mesonbuild/compilers.py
parent54697b41303c900bd44f962d174cda799d177a9e (diff)
downloadmeson-c8bb7f2217fdc336cab6fc4b29d561ce17518c4d.zip
meson-c8bb7f2217fdc336cab6fc4b29d561ce17518c4d.tar.gz
meson-c8bb7f2217fdc336cab6fc4b29d561ce17518c4d.tar.bz2
unit tests: Be more specific in checking for commands
'-w' in c_command will check for it as a substring, which will also match '-wd', etc. So match it with quotes. This won't give us false positives, but might give us false negatives in case the argument is not quoted, but that's better behaviour for a test. The alternative is to split the string command, but the command does not necessarily obey shell quoting rules, so we cannot reliably use shlex.split().
Diffstat (limited to 'mesonbuild/compilers.py')
0 files changed, 0 insertions, 0 deletions