Commit cbcc258b authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Added GtestMissingError exceptions for tests

parent fda84880
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -10,10 +10,10 @@

// Implemented by: Jakub Klinkovsky

#include <new>

#pragma once

#include <new>

namespace TNL {
namespace Exceptions {

+2 −2
Original line number Diff line number Diff line
@@ -10,10 +10,10 @@

// Implemented by: Jakub Klinkovsky

#include "CudaSupportMissing.h"

#pragma once

#include "CudaSupportMissing.h"

namespace TNL {
namespace Exceptions {

+2 −2
Original line number Diff line number Diff line
@@ -10,10 +10,10 @@

// Implemented by: Jakub Klinkovsky

#include <stdexcept>

#pragma once

#include <stdexcept>

namespace TNL {
namespace Exceptions {

+4 −3
Original line number Diff line number Diff line
/***************************************************************************
                          tnlFileTester.h  -  description
                          FileTest.h  -  description
                             -------------------
    begin                : Oct 24, 2010
    copyright            : (C) 2010 by Tomas Oberhuber
    copyright            : (C) 2010 by Tomas Oberhuber et al.
    email                : tomas.oberhuber@fjfi.cvut.cz
 ***************************************************************************/

@@ -122,12 +122,13 @@ TEST( FileTest, WriteAndReadCUDA )
#endif
#endif

#include "GtestMissingError.h"
int main( int argc, char* argv[] )
{
#ifdef HAVE_GTEST
   ::testing::InitGoogleTest( &argc, argv );
   return RUN_ALL_TESTS();
#else
   return EXIT_FAILURE;
   throw GtestMissingError();
#endif
}
+21 −0
Original line number Diff line number Diff line
/***************************************************************************
                          GtestMissingError.h  -  description
                             -------------------
    begin                : Jul 2, 2017
    copyright            : (C) 2017 by Tomas Oberhuber et al.
    email                : tomas.oberhuber@fjfi.cvut.cz
 ***************************************************************************/

/* See Copyright Notice in tnl/Copyright */

#pragma once

#include <stdexcept>

struct GtestMissingError
   : public std::runtime_error
{
   GtestMissingError()
   : std::runtime_error( "The GTest library is needed to run the tests." )
   {}
};
Loading