Loading src/TNL/Exceptions/CudaBadAlloc.h +2 −2 Original line number Diff line number Diff line Loading @@ -10,10 +10,10 @@ // Implemented by: Jakub Klinkovsky #include <new> #pragma once #include <new> namespace TNL { namespace Exceptions { Loading src/TNL/Exceptions/CudaRuntimeError.h +2 −2 Original line number Diff line number Diff line Loading @@ -10,10 +10,10 @@ // Implemented by: Jakub Klinkovsky #include "CudaSupportMissing.h" #pragma once #include "CudaSupportMissing.h" namespace TNL { namespace Exceptions { Loading src/TNL/Exceptions/CudaSupportMissing.h +2 −2 Original line number Diff line number Diff line Loading @@ -10,10 +10,10 @@ // Implemented by: Jakub Klinkovsky #include <stdexcept> #pragma once #include <stdexcept> namespace TNL { namespace Exceptions { Loading src/UnitTests/FileTest.h +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 ***************************************************************************/ Loading Loading @@ -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 } src/UnitTests/GtestMissingError.h 0 → 100644 +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
src/TNL/Exceptions/CudaBadAlloc.h +2 −2 Original line number Diff line number Diff line Loading @@ -10,10 +10,10 @@ // Implemented by: Jakub Klinkovsky #include <new> #pragma once #include <new> namespace TNL { namespace Exceptions { Loading
src/TNL/Exceptions/CudaRuntimeError.h +2 −2 Original line number Diff line number Diff line Loading @@ -10,10 +10,10 @@ // Implemented by: Jakub Klinkovsky #include "CudaSupportMissing.h" #pragma once #include "CudaSupportMissing.h" namespace TNL { namespace Exceptions { Loading
src/TNL/Exceptions/CudaSupportMissing.h +2 −2 Original line number Diff line number Diff line Loading @@ -10,10 +10,10 @@ // Implemented by: Jakub Klinkovsky #include <stdexcept> #pragma once #include <stdexcept> namespace TNL { namespace Exceptions { Loading
src/UnitTests/FileTest.h +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 ***************************************************************************/ Loading Loading @@ -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 }
src/UnitTests/GtestMissingError.h 0 → 100644 +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." ) {} };