8257229: gtest death tests fail with unrecognized stderr output

Reviewed-by: coleenp, minqi
This commit is contained in:
Ioi Lam 2020-12-14 07:00:40 +00:00
parent e1182920db
commit c30fff7c32

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -135,7 +135,7 @@
TEST(category, CONCAT(name, _vm_assert)) { \ TEST(category, CONCAT(name, _vm_assert)) { \
ASSERT_EXIT(child_ ## category ## _ ## name ## _(), \ ASSERT_EXIT(child_ ## category ## _ ## name ## _(), \
::testing::ExitedWithCode(1), \ ::testing::ExitedWithCode(1), \
"^assert failed: " msg); \ "assert failed: " msg); \
} \ } \
\ \
void test_ ## category ## _ ## name ## _() void test_ ## category ## _ ## name ## _()