Skip to content

Commit

Permalink
iox-#337 print more info for unexpected semaphore errors
Browse files Browse the repository at this point in the history
Signed-off-by: Mathias Kraus <[email protected]>
  • Loading branch information
elBoberido committed Dec 21, 2020
1 parent b2c4e2d commit 5b079ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion iceoryx_utils/source/posix_wrapper/semaphore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ SemaphoreError Semaphore::errnoToEnum(const int errnoValue) const noexcept
std::cerr << "call was interrupted by signal handler" << std::endl;
return SemaphoreError::INTERRUPTED_BY_SIGNAL_HANDLER;
default:
std::cerr << "an undefined error occurred in semaphore - this should never happen!" << std::endl;
std::cerr << "an unexpected error occurred in semaphore - this should never happen! errno: " << strerror(errnoValue) << std::endl;
return SemaphoreError::UNDEFINED;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ struct PeriodicTaskTestType

uint64_t PeriodicTaskTestType::callCounter{0};


using CallableTypes =
Types<PeriodicTaskTestType, cxx::function_ref<void()>, cxx::MethodCallback<void()>, std::function<void()>>;

class PeriodicTask_test : public Test
{
public:
Expand Down

0 comments on commit 5b079ac

Please sign in to comment.