update EXPECT_THROW_ERRNO() to match std::generic_category
Summary: std::system_error exceptions generated from an errno value should use `std::generic_category`. Previously EXPECT_THROW_ERRNO() only handled exceptions using `std::system_category` since `folly/Exception.h` (incorrectly) throws exceptions using `std::system_category` This updates EXPECT_THROW_ERRNO() to accept either std::generic_category or std::system_category. In the future we can drop the check for std::system_category here once we fix folly/Exception.h to throw exceptions using std::generic_category. Reviewed By: yfeldblum Differential Revision: D7329998 fbshipit-source-id: 89295d7c8276c9119c29325bf35c0bf27452b779
Showing
Please register or sign in to comment