diff --git a/tests/my_root_script.cxx b/tests/my_root_script.cxx index a333818b01c72b2fd845e43fe71f4f92abb800f0..5b2e54d5b6acf6db66e500385f3a35cba9e6ad14 100644 --- a/tests/my_root_script.cxx +++ b/tests/my_root_script.cxx @@ -3,5 +3,16 @@ void my_root_script() { std::cout << "Hello from my_root_script.cxx!\n"; std::cout << "This should be run with singularity\n"; + double pi = 3.14; + auto pi_equals_3 = (3 == pi); + std::cout << " pi_equals_3 = " << pi_equals_3 << "\n"; + + if( pi_equals_3) { + std::cout << "what the hell?\n"; + std::exit( 0 ); + } + /* else */ + + std::exit( -1 ); }