From 6bec6738ec9d978036dcc64a7008c86b95bed5c0 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Thu, 6 Feb 2020 21:30:00 -0500 Subject: [PATCH] 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. --- tests/general.at | 2 +- tests/interface.at | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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" -- 2.43.2