glib/gobject/tests
Chun-wei Fan 75e3f92cd0 GObject: Fix mkenums.py and genmarshal.py tests on Windows
The two test scripts actually assumed some *NIX paradigms, so we need
to adapt them so that they can work on Windows as well, the changes are
namely:

-Call the glib-mkenums and glib-genmarshal Python scripts with the
 Python interpreter, not just relying on shebang lines, on Windows.
 This is because the native Windows console (cmd.exe) does not support
 shebang lines, for subprocess.run().

-Use NamedTemporaryFile with delete=False, otherwise Windows cannot find
 the temp files we need when running the tests.

-Use universal_newlines=True for subprocess.run() so that we do not need
 to worry out line ending differences on different systems.

-Make sure we are not in the temp directories we create, where the tests
 are being run, upon cleanup.  Windows does not like deleting
 directories that we are currently in.
2019-06-25 00:04:48 +08:00
..
.gitignore .gitignore updates 2015-10-23 11:28:03 -04:00
autoptr.c gmacros: Add g_autoqueue to automatically free queues 2019-05-08 14:25:24 -05:00
binding.c g_binding_unbind: make it more introspection friendly; allow calling it multiple times. Fixes #1373 2018-08-16 11:27:34 +02:00
boxed.c boxed: Fix double free in boxed unit tests 2013-11-11 07:20:09 +01:00
closure-refcount.c tests: Fix closure-refcount to preserve old semantics 2019-02-28 07:05:29 +01:00
closure.c Fix the closure test in continuous 2014-05-30 10:22:35 -04:00
dynamictests.c Drop trailing semi-colon from G_DEFINE_ macro 2017-04-10 10:38:31 +01:00
enums.c gobject: Add to_string() functions for Enum and Flags types 2017-03-30 09:52:28 +01:00
flags.c Add unit test for flags validation 2018-11-01 01:41:32 +03:00
genmarshal.py GObject: Fix mkenums.py and genmarshal.py tests on Windows 2019-06-25 00:04:48 +08:00
ifaceproperties.c gobject/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
marshalers.list Add more tests for signal emissions 2012-03-02 17:13:04 +01:00
meson.build Prevent taptestrunner to create a __pycache__ directory 2019-06-21 09:13:11 +02:00
mkenums.py GObject: Fix mkenums.py and genmarshal.py tests on Windows 2019-06-25 00:04:48 +08:00
object.c gobject: re-allow finalization from constructor() 2014-02-15 10:20:53 -05:00
param.c Drop trailing semi-colon from G_DEFINE_ macro 2017-04-10 10:38:31 +01:00
private.c Annotate various types and macros as deprecated 2019-05-30 10:39:11 +01:00
properties.c Allow calling get_property() with an uninitialized GValue 2019-06-04 20:05:24 +01:00
qdata.c gobject/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
reference.c gobject: Make g_clear_object take a non-volatile GObject ** 2018-07-12 08:47:40 +01:00
signal-handler.c Add a performance test for signal connection 2015-05-27 14:41:19 -04:00
signals.c tests, signals: Add tests for g_clear_signal_handler 2019-05-20 13:33:41 -05:00
taptestrunner.py tests: Avoid writing ever increasing sequence of null bytes to test logs 2018-12-12 12:57:51 +01:00
testcommon.h gobject/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
threadtests.c g_usleep: round up the next millisecond on Windows. See #1371 2018-05-27 09:23:25 +02:00
type.c Improve test coverage in gobject/ 2013-05-29 08:37:08 -04:00
value.c Allow passing unset GValues to g_value_unset() 2015-10-02 10:07:53 -04:00