diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-02-13 19:35:45 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-02-13 19:35:45 +0000 |
commit | dc45d51ba1d0edb09318627aa368ae2a37a823ee (patch) | |
tree | 41e03b6df9bfba33adc57cd9b3ae093dbdac32b9 /googletest/test/googletest-throw-on-failure-test_.cc | |
parent | 525b72a0dc9d16e8f9fd9b5be88c1b72715a4681 (diff) | |
parent | 05911fd931cde55ea86bdb12b5706fb5aa570544 (diff) | |
download | googletest-dc45d51ba1d0edb09318627aa368ae2a37a823ee.tar.gz |
Snap for 11443790 from 05911fd931cde55ea86bdb12b5706fb5aa570544 to android-games-sdk-game-activity-releaseandroid-games-sdk-game-activity-release
Change-Id: I41e5f388a6eb080093d38ac9f2639d2c26520914
Diffstat (limited to 'googletest/test/googletest-throw-on-failure-test_.cc')
-rw-r--r-- | googletest/test/googletest-throw-on-failure-test_.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/googletest/test/googletest-throw-on-failure-test_.cc b/googletest/test/googletest-throw-on-failure-test_.cc index 83bb914c..3b81a5a1 100644 --- a/googletest/test/googletest-throw-on-failure-test_.cc +++ b/googletest/test/googletest-throw-on-failure-test_.cc @@ -27,18 +27,18 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - // Tests Google Test's throw-on-failure mode with exceptions disabled. // // This program must be compiled with exceptions disabled. It will be // invoked by googletest-throw-on-failure-test.py, and is expected to exit // with non-zero in the throw-on-failure mode or 0 otherwise. -#include "gtest/gtest.h" +#include <stdio.h> // for fflush, fprintf, NULL, etc. +#include <stdlib.h> // for exit -#include <stdio.h> // for fflush, fprintf, NULL, etc. -#include <stdlib.h> // for exit -#include <exception> // for set_terminate +#include <exception> // for set_terminate + +#include "gtest/gtest.h" // This terminate handler aborts the program using exit() rather than abort(). // This avoids showing pop-ups on Windows systems and core dumps on Unix-like |