add EXPECT_THROW_RE() and EXPECT_THROW_ERRNO() test macros
authorAdam Simpkins <simpkins@fb.com>
Wed, 15 Nov 2017 20:48:56 +0000 (12:48 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 15 Nov 2017 21:06:27 +0000 (13:06 -0800)
commitb010847b060f99a988069ca387416a08e9dc221e
treee50b51cc5a73cd7c3ee7a42e77f081a8be368573
parent2bbf87af3ab2fa277c9a9a81d907d754ccf28c50
add EXPECT_THROW_RE() and EXPECT_THROW_ERRNO() test macros

Summary:
Add EXPECT_THROW_RE() and EXPECT_THROW_ERRNO() macros to folly/test/TestUtils.h
These allow more precise checks than the basic EXPECT_THROW() macro provided as
part of gtest.

These macros are being moved into folly from Facebook's eden repository
(https://github.com/facebookexperimental/eden)
This will allow us to use them in folly tests and in other projects that depend
on folly.

Reviewed By: yfeldblum

Differential Revision: D6301760

fbshipit-source-id: 1f434fb5bc9b7859f763171264fb0b2e1b4bda62
folly/test/TestUtils.h