From: Nick Bowler Date: Fri, 7 Feb 2020 02:30:00 +0000 (-0500) Subject: Add missing includes in test cases. X-Git-Url: https://git.draconx.ca/gitweb/gob-dx.git/commitdiff_plain/6bec6738ec9d978036dcc64a7008c86b95bed5c0 Add missing includes in test cases. It seems that current versions of GLib expose EXIT_FAILURE and EXIT_SUCCESS (possibly via indirect includes). But this is not the case in older versions and some tests fail as a result due to the missing macro definitions. Easily fixed. --- diff --git a/tests/general.at b/tests/general.at index fa465e5..97b59da 100644 --- a/tests/general.at +++ b/tests/general.at @@ -131,7 +131,7 @@ class :Mod from G:Type:Module ]]) AT_DATA([main.c], -[[#include +[[#include #include "mod.h" #include "test.h" diff --git a/tests/interface.at b/tests/interface.at index 61c42bb..9c368b6 100644 --- a/tests/interface.at +++ b/tests/interface.at @@ -204,6 +204,7 @@ TEST_FOOABLE_IMPL_DYN([Test:B], [Test:A], AT_DATA([main.c], [[#include +#include #include "test-fooable.h" #include "test-a.h" #include "test-b.h" @@ -254,6 +255,7 @@ TEST_FOOABLE_IMPL_DYN([Test:B], [Test:A], AT_DATA([main.c], [[#include +#include #include "test-fooable.h" #include "test-a.h" #include "test-a-mod.h" @@ -306,6 +308,7 @@ TEST_FOOABLE_IMPL([Test:C], [Test:B], AT_DATA([main.c], [[#include +#include #include "test-fooable.h" #include "test-a.h" #include "test-b.h" @@ -349,6 +352,7 @@ TEST_FOOABLE_IMPL_DYN([Test:C], [Test:B], AT_DATA([main.c], [[#include +#include #include "test-fooable.h" #include "test-a.h" #include "test-a-mod.h"