From ce31de2c6f5ecc65818c801d36b49f24733533c9 Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 30 Jan 2024 23:08:14 +0100 Subject: [PATCH] Fix tests when making a unity build The formatting for chrono types needs to be included before CppUnit headers. This change makes sure of that by simply including that header via `tests/testutils.h`. The `chrono/format.h` header is not big (including the header it includes) so this should not be a big deal. --- tests/testutils.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/testutils.h b/tests/testutils.h index 47d6e65..7a856bb 100644 --- a/tests/testutils.h +++ b/tests/testutils.h @@ -2,6 +2,7 @@ #define TESTUTILS_H #include "../application/argumentparser.h" +#include "../chrono/format.h" #include "../misc/traits.h" #include