Dylan Baker
7daed5faf8
unittests/baseplatform: don't double print on error
3 years ago
Eli Schwartz
59d4f771d2
editorconfig: add setting to trim trailing whitespace
...
and clean up all outstanding issues
Skip 'test cases/common/141 special characters/meson.build' since it
intentionally uses trailing newlines.
3 years ago
Eli Schwartz
ead4ba7777
run_unittests: fix unused variable warnings
...
We don't actually want to do anything with the open()ed file, just
immediately close it.
The CalledProcessError doesn't have its return returncode checked
here, even though other code with the same type of context manager does.
3 years ago
Jussi Pakkanen
a90d2925dd
Revert "compilers/c++: Add MSVC option to make the __cplusplus define accurate"
...
This reverts commit 0b97d58548
.
3 years ago
Dylan Baker
0b97d58548
compilers/c++: Add MSVC option to make the __cplusplus define accurate
...
Otherwise it always returns the value for c++98, starting with MSVC 2017
15.7 or later. Earlier versions are not affected by this mis-feature
3 years ago
Xavier Claessens
5462ea921f
interpreter: Fix missing subsubproject summary when subproject fails
...
In the case main->subp->subsubp, if subsubp succeed to configure but
subp subsequentially fails, subsubp is still being built but its summary
was missing.
3 years ago
lilinzhe
dd2e3bf446
pkg-config: support for `-l:libfoo.a`
...
fixs: #9000 Meson not correctly process with -l:xxx.a link arguments in pkgconfig .pc file.
see also:https://stackoverflow.com/questions/48532868/gcc-library-option-with-a-colon-llibevent-a
with unit test, unit test will be partially skiped if pkg-config version < 0.28 .
see: https://gitlab.freedesktop.org/pkg-config/pkg-config/-/blob/master/NEWS
3 years ago
Xavier Claessens
943596abbb
Fix --force-fallack-for with --wrap-mode=nofallback
...
Fixes : #9065
3 years ago
Alois Wohlschlager
40d5a38d1b
Escape path in exclude filter passed to gcovr
...
Gcovr interprets exclude filters, as passed to the -e option, as
regexes. Since we want to exclude a raw path, the argument must be
escaped.
3 years ago
Xavier Claessens
9da99e7a59
destdir: Allow relative to build directory
...
Meson already works like that, except in do_copydir() that requires
absolute destdir. Better explicitly support that instead of leaving it
undefined and unconsistent.
3 years ago
Dylan Baker
a450f8c6bc
interenaltests: Add some version strings with ansi escapes in them
...
AS we've run into a few programs using ansi escapes in their version
outputs, we'd like to test them as well.
3 years ago
Xavier Claessens
7eb4c23156
Split run_unittests.py file
3 years ago