summaryrefslogtreecommitdiff
path: root/tests/config.cpp
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2016-12-21 21:25:17 +0100
committerJonas Smedegaard <dr@jones.dk>2016-12-21 21:25:17 +0100
commitdc1ad45aea9a10007a31ae449b1e0fe352a8a6cd (patch)
treeeb233ce97fc828e2edba69a82a1e7314b92771d3 /tests/config.cpp
parenta077b304b27d21bf635ef4f31a2a0447d3b14d11 (diff)
parentf820d86aadb7a5473bcc0a0a3669732ab0182555 (diff)
downloadbiboumi-dc1ad45aea9a10007a31ae449b1e0fe352a8a6cd.tar.gz
biboumi-dc1ad45aea9a10007a31ae449b1e0fe352a8a6cd.tar.bz2
biboumi-dc1ad45aea9a10007a31ae449b1e0fe352a8a6cd.tar.xz
biboumi-dc1ad45aea9a10007a31ae449b1e0fe352a8a6cd.zip
Merge tag 'upstream/4.0'
Upstream version 4.0 # gpg: Signature made Wed Dec 21 21:25:11 2016 CET # gpg: using RSA key 2C7C3146C1A00121 # gpg: Good signature from "Jonas Smedegaard <dr@jones.dk>" # gpg: aka "Jonas Smedegaard <jonas@homebase.dk>" # gpg: aka "Jonas Smedegaard <js@debian.org>" # gpg: aka "[jpeg image of size 4165]"
Diffstat (limited to 'tests/config.cpp')
-rw-r--r--tests/config.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/config.cpp b/tests/config.cpp
index ddea151..a6fa92a 100644
--- a/tests/config.cpp
+++ b/tests/config.cpp
@@ -1,9 +1,14 @@
#include "catch.hpp"
+#include "io_tester.hpp"
+
+#include <iostream>
#include <config/config.hpp>
TEST_CASE("Config basic")
{
+ // Disable all output for this test
+ IoTester<std::ostream> out(std::cout);
// Write a value in the config file
Config::read_conf("test.cfg");
Config::set("coucou", "bonjour", true);