os_libpath_t.cc
Go to the documentation of this file.
1 #include "catch2/catch.hpp"
2 
3 #include "cetlib/os_libpath.h"
4 
5 #include <string>
6 
7 TEST_CASE("Basic test")
8 {
9  std::string const expected =
10 #ifdef __APPLE__
11  "DYLD_LIBRARY_PATH";
12 #else
13  "LD_LIBRARY_PATH";
14 #endif
15 
16  char const* lpath = cet::os_libpath();
17  CHECK(expected == lpath);
18 }
constexpr char const * os_libpath()
Definition: os_libpath.h:12
const char expected[]
Definition: Exception_t.cc:22
std::string string
Definition: nybbler.cc:12
TEST_CASE("Basic test")
Definition: os_libpath_t.cc:7