Disable the output in the config unit test

This commit is contained in:
louiz’
2016-10-12 22:18:53 +02:00
parent 86c927ae17
commit 34bd8b93da
+5
View File
@@ -1,9 +1,14 @@
#include "catch.hpp" #include "catch.hpp"
#include "io_tester.hpp"
#include <iostream>
#include <config/config.hpp> #include <config/config.hpp>
TEST_CASE("Config basic") TEST_CASE("Config basic")
{ {
// Disable all output for this test
IoTester<std::ostream> out(std::cout);
// Write a value in the config file // Write a value in the config file
Config::read_conf("test.cfg"); Config::read_conf("test.cfg");
Config::set("coucou", "bonjour", true); Config::set("coucou", "bonjour", true);