LCOV - code coverage report
Current view: top level - ers/plugins - ExitStream.cpp (source / functions) Coverage Total Hit
Test: code.result Lines: 12.5 % 8 1
Test Date: 2026-07-12 15:23:06 Functions: 25.0 % 4 1

            Line data    Source code
       1              : /*
       2              :  * DUNE DAQ modification notice:
       3              :  * This file has been modified from the original ATLAS ers source for the DUNE DAQ project.
       4              :  * Fork baseline commit: 8267df82a4f6fe6bf02c4014923eba19eddc4614 (2020-04-14).
       5              :  * Renamed since fork: yes (from src/streams/ExitStream.cxx to plugins/ExitStream.cpp).
       6              :  *
       7              :  * Original copyright:
       8              :  * Copyright (C) 2001-2020 CERN for the benefit of the ATLAS collaboration.
       9              :  * Licensed under the Apache License, Version 2.0.
      10              :  */
      11              : 
      12              : /*
      13              :  *  ExitStream.cxx
      14              :  *  ers
      15              :  *
      16              :  *  Created by Serguei Kolos on 02.08.05.
      17              :  *  Copyright 2004 CERN. All rights reserved.
      18              :  *
      19              :  */
      20              : 
      21              : #include <ers/internal/ExitStream.hpp>
      22              : #include <stdlib.h>
      23              : 
      24           42 : ERS_REGISTER_OUTPUT_STREAM( ers::ExitStream, "exit", exit_code )
      25              : 
      26            0 : ers::ExitStream::ExitStream( const std::string & exit_code )
      27            0 :   : m_exit_code( 1 )
      28              : {
      29            0 :     std::istringstream in( exit_code );
      30            0 :     in >> m_exit_code;
      31            0 : }
      32              : 
      33            0 : void ers::ExitStream::write( const Issue & )
      34              : {
      35            0 :     ::exit( m_exit_code );
      36              : }
      37              : 
        

Generated by: LCOV version 2.0-1