| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #include <catch2/catch_all.hpp> |
| 5 | #include <catch2/trompeloeil.hpp> |
| 6 | #include <spdlog/sinks/null_sink.h> |
| 7 | #include <spdlog/spdlog.h> |
| 8 | |
| 9 | void setupLogger() |
| 10 | { |
| 11 | auto logger = spdlog::create<spdlog::sinks::null_sink_st>("null_logger"); |
| 12 | spdlog::set_default_logger(logger); |
| 13 | } |
| 14 | |
| 15 | int main(int argc, char *argv[]) |
| 16 | { |
| 17 | setupLogger(); |
| 18 | return Catch::Session().run(argc, argv); |
| 19 | } |