mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 14:42:29 +02:00
test: fix build with Catch2 v2.x
Use smaller includes for Catch2 v3.
This commit is contained in:
@ -1,6 +1,10 @@
|
||||
#include "config.hpp"
|
||||
|
||||
#include <catch2/catch_all.hpp>
|
||||
#if __has_include(<catch2/catch_test_macros.hpp>)
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#else
|
||||
#include <catch2/catch.hpp>
|
||||
#endif
|
||||
|
||||
TEST_CASE("Load simple config", "[config]") {
|
||||
waybar::Config conf;
|
||||
|
Reference in New Issue
Block a user