mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +01:00
tests: Run processes under test with G_DEBUG=fatal-warnings
Modify all the similar Python test wrappers to set `G_DEBUG=fatal-warnings` in the environment of the program being tested, so we can catch unexpected warnings/criticals. Adding this because I noticed it was missing, not because I noticed a warning/critical was being ignored. Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
This commit is contained in:
parent
120e0ee649
commit
077104e63b
@ -116,6 +116,7 @@ class TestCodegen(unittest.TestCase):
|
||||
|
||||
env = os.environ.copy()
|
||||
env["LC_ALL"] = "C.UTF-8"
|
||||
env["G_DEBUG"] = "fatal-warnings"
|
||||
print("Environment:", env)
|
||||
|
||||
# We want to ensure consistent line endings...
|
||||
|
@ -63,6 +63,7 @@ class TestMessagesLowMemory(unittest.TestCase):
|
||||
|
||||
env = os.environ.copy()
|
||||
env["LC_ALL"] = "C.UTF-8"
|
||||
env["G_DEBUG"] = "fatal-warnings"
|
||||
print("Environment:", env)
|
||||
|
||||
# We want to ensure consistent line endings...
|
||||
|
@ -88,6 +88,7 @@ class TestGenmarshal(unittest.TestCase):
|
||||
|
||||
env = os.environ.copy()
|
||||
env["LC_ALL"] = "C.UTF-8"
|
||||
env["G_DEBUG"] = "fatal-warnings"
|
||||
print("Environment:", env)
|
||||
|
||||
# We want to ensure consistent line endings...
|
||||
|
@ -59,6 +59,7 @@ class TestGobjectQuery(unittest.TestCase):
|
||||
|
||||
env = os.environ.copy()
|
||||
env["LC_ALL"] = "C.UTF-8"
|
||||
env["G_DEBUG"] = "fatal-warnings"
|
||||
print("Environment:", env)
|
||||
|
||||
# We want to ensure consistent line endings...
|
||||
|
@ -100,6 +100,7 @@ class TestMkenums(unittest.TestCase):
|
||||
|
||||
env = os.environ.copy()
|
||||
env["LC_ALL"] = "C.UTF-8"
|
||||
env["G_DEBUG"] = "fatal-warnings"
|
||||
print("Environment:", env)
|
||||
|
||||
# We want to ensure consistent line endings...
|
||||
|
Loading…
Reference in New Issue
Block a user