Yes, there is something odd there. I see your note to yourself around line 913
I commented out the 'send(i)' and then 'make' and run.
It is close to what you would expect. It is testing for the expected exception, but not getting it and reporting as a failure. All other tests passed.
Not quite triggering exception and then successfully checking for it.
Got this:
Bobs-MacBook-Air:tests bobgus$ ./test_sodium
...................................................F
!!!FAILURES!!!
Test Results:
Run: 51 Failures: 1 Errors: 0
1) test: test_sodium::cant_send_in_handler (F) line: 913 test_sodium.cpp
expected exception not thrown
- Expected: std::runtime_error
Bobs-MacBook-Air:tests bobgus$