--- a/libtest/timer.cc +++ b/libtest/timer.cc @@ -41,7 +41,7 @@ #include #include -#ifdef __MACH__ +#ifdef __APPLE__ # include # include #else @@ -110,7 +110,7 @@ void Timer::difference(struct timespec& void Timer::_time(struct timespec& ts) { -#ifdef __MACH__ // OSX lacks clock_gettime() +#ifdef __APPLE__ // OSX lacks clock_gettime() clock_serv_t _clock_serv; mach_timespec_t _mach_timespec; host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &_clock_serv); --- a/libtest/unittest.cc +++ b/libtest/unittest.cc @@ -594,6 +594,8 @@ static test_return_t application_doesnot ASSERT_EQ(Application::INVALID_POSIX_SPAWN, true_app.run(args)); #elif defined(TARGET_OS_FREEBSD) && TARGET_OS_FREEBSD ASSERT_EQ(Application::INVALID_POSIX_SPAWN, true_app.run(args)); +#elif defined(__GNU__) + ASSERT_EQ(Application::INVALID_POSIX_SPAWN, true_app.run(args)); #else ASSERT_EQ(Application::SUCCESS, true_app.run(args)); ASSERT_EQ(Application::INVALID_POSIX_SPAWN, true_app.join());