Project
Loading...
Searching...
No Matches
test_InfoLogger.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11#include <catch_amalgamated.hpp>
12
13#include <InfoLogger/InfoLogger.hxx>
14using namespace AliceO2::InfoLogger;
15
16TEST_CASE("InfoLoggerTest")
17{
18
19 // define infologger output to stdout, as we don't want to use the default infoLoggerD pipe which might not be running here
20 setenv("O2_INFOLOGGER_MODE", "stdout", 1);
21
22 // create the infologger interface
23 InfoLogger theLog;
24
25 // log a test message
26 CHECK(theLog.log("This is a log message test to stdout") == 0);
27}
#define CHECK
TEST_CASE("InfoLoggerTest")