aboutsummaryrefslogtreecommitdiff
path: root/googletest/test/googletest-throw-on-failure-test_.cc
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-02-13 19:35:45 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-02-13 19:35:45 +0000
commitdc45d51ba1d0edb09318627aa368ae2a37a823ee (patch)
tree41e03b6df9bfba33adc57cd9b3ae093dbdac32b9 /googletest/test/googletest-throw-on-failure-test_.cc
parent525b72a0dc9d16e8f9fd9b5be88c1b72715a4681 (diff)
parent05911fd931cde55ea86bdb12b5706fb5aa570544 (diff)
downloadgoogletest-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_.cc10
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