File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 99#elif defined(__unix__) || defined(__unix) || defined(__gnu_linux__)
1010 #include < wordexp.h> // wordexp(), wordfree()
1111#else
12- #error "Platform other than Windows and Unix-like not supported yet "
12+ #warning "Calling bux::expand_env() will get thrown an exception "
1313#endif
1414#ifdef __unix__
1515 #include < cxxabi.h> // abi::__cxa_demangle()
Original file line number Diff line number Diff line change 7171target_link_libraries (smoke_timestamp PRIVATE bux stdc++)
7272endif ()
7373
74+ if (NOT APPLE )
7475add_executable (test_expand_env test_expand_env.cpp)
7576#target_compile_options(test_expand_env PUBLIC -D_GLIBCXX_USE_CXX11_ABI=1)
7677target_include_directories (test_expand_env PRIVATE ../include )
@@ -94,6 +95,7 @@ add_test(NAME test_pass_env
9495 COMMAND test_expand_env env "USER"
9596 )
9697set_tests_properties (test_pass_env PROPERTIES PASS_REGULAR_EXPRESSION "$ENV{USER} " )
98+ endif ()
9799
98100find_package (Catch2 REQUIRED)
99101include (Catch)
Original file line number Diff line number Diff line change 7979target_link_libraries (smoke_timestamp PRIVATE bux stdc++)
8080endif ()
8181
82+ if (NOT APPLE )
8283add_executable (test_expand_env test_expand_env.cpp)
8384#target_compile_options(test_expand_env PUBLIC -D_GLIBCXX_USE_CXX11_ABI=1)
8485target_include_directories (test_expand_env PRIVATE ../include )
@@ -102,6 +103,7 @@ add_test(NAME test_pass_env
102103 COMMAND test_expand_env env "USER"
103104 )
104105set_tests_properties (test_pass_env PROPERTIES PASS_REGULAR_EXPRESSION "$ENV{USER} " )
106+ endif ()
105107
106108find_package (Catch2 REQUIRED)
107109include (Catch)
You can’t perform that action at this time.
0 commit comments