Refactoring: C++11 style DISABLE_ bionic marcos
Enable the -std=gnu++11 flag for libstdc++ static and
dynamic libs.
ScopeGuard uses DISABLE_ macros instead of '= delete';
(cherry picked from commit d9ff722661)
Change-Id: If2573d080770e18b36b56106f2369f7bb682cd3c
This commit is contained in:
@@ -869,7 +869,7 @@ TEST(pthread, pthread_attr_getstack__main_thread) {
|
||||
#endif
|
||||
EXPECT_EQ(rl.rlim_cur, stack_size);
|
||||
|
||||
auto guard = create_scope_guard([&rl, original_rlim_cur]() {
|
||||
auto guard = make_scope_guard([&rl, original_rlim_cur]() {
|
||||
rl.rlim_cur = original_rlim_cur;
|
||||
ASSERT_EQ(0, setrlimit(RLIMIT_STACK, &rl));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user