Eli Schwartz
739de7b088
unittests: use better assert methods
...
assertTrue and assertFalse are recommended against, if you can get a
more specific assertion. And sometimes it is considerably shorter, for
example we have a custom assertPathExists which we can take advantage
of.
2021-10-26 20:53:43 -04:00
Xavier Claessens
ea02c1c48a
msvc: Assume UTF8 source by default
...
Currently every project that uses UTF8 for its source files must add
'/utf-8' argument otherwise they don't work non-English locale MSVC.
Since meson.build itself is assumed to be UTF8 by default, seems better
to assume it for source files by default too.
For example:
- https://gitlab.freedesktop.org/gstreamer/gst-build/-/blob/master/meson.build#L62
- https://gitlab.gnome.org/GNOME/glib/-/blob/main/meson.build#L29
2021-09-01 19:26:36 +03:00
Jussi Pakkanen
a90d2925dd
Revert "compilers/c++: Add MSVC option to make the __cplusplus define accurate"
...
This reverts commit 0b97d58548
.
2021-08-15 13:18:35 +03:00
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
2021-08-11 21:54:16 +03:00
Xavier Claessens
7eb4c23156
Split run_unittests.py file
2021-07-26 15:19:13 -04:00