summaryrefslogtreecommitdiffstats
path: root/tests/test_connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_connection.cpp')
-rw-r--r--tests/test_connection.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/test_connection.cpp b/tests/test_connection.cpp
index 05d7668..208e8de 100644
--- a/tests/test_connection.cpp
+++ b/tests/test_connection.cpp
@@ -1,5 +1,5 @@
/* This file is part of mastodonpp.
- * Copyright © 2020 tastytea <tastytea@tastytea.de>
+ * Copyright © 2020, 2022 tastytea <tastytea@tastytea.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
@@ -17,7 +17,12 @@
#include "connection.hpp"
#include "instance.hpp"
-#include <catch.hpp>
+// catch 3 does not have catch.hpp anymore
+#if __has_include(<catch.hpp>)
+# include <catch.hpp>
+#else
+# include <catch_all.hpp>
+#endif
#include <exception>