diff options
author | Tao Bao <tbao@google.com> | 2018-03-23 00:27:26 -0700 |
---|---|---|
committer | Tao Bao <tbao@google.com> | 2018-03-23 09:40:21 -0700 |
commit | 9932789996f9dc2f97203d5d745850ccf3258e00 (patch) | |
tree | a1b48c55062d40efc16e4345ef65a692f60604dc /libc/malloc_hooks/malloc_hooks.cpp | |
parent | 1423bb849879f3f126cb1e6dcb279da5360ef5fc (diff) |
Exit gracefully on invalid --gtest_* flag.
My gtest run crashed when I provided wrong flag (e.g. --gtest_list),
because it tried to call std::vector::back() on empty testcase_list.
Test: /data/nativetest/bionic-unit-tests/bionic-unit-tests works.
Test: `/d/n/b/bionic-unit-tests --gtest_invalid` dumps the gtest help
message.
Change-Id: I5f63c7fa6476d8749248c9b54d3023446f3e0e77
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions