commit | 202bc18e0bf163c0ac965b61f1095950da9e0431 | [log] [tgz] |
---|---|---|
author | Kevin Rocard <krocard@google.com> | Fri Aug 10 14:45:37 2018 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Fri Aug 10 14:45:37 2018 -0700 |
tree | 390b1009a1624298b09fac18138c455aa14829ee | |
parent | bb2a5ecf54d50379c2b3106fc05ee55b61cbaddf [diff] | |
parent | 53811929738dffd320800fb231eb0f0d40eeaa8a [diff] |
Audio VTS: run tear-down hooks in LIFO instead of FIFO am: cfab8dac2b am: 5381192973 Change-Id: Icb1940e1a6b8c9f4fe053f71dfadc52bb9e59fe0
diff --git a/audio/common/all-versions/test/utility/include/utility/EnvironmentTearDown.h b/audio/common/all-versions/test/utility/include/utility/EnvironmentTearDown.h index a96d06e..7a08a54 100644 --- a/audio/common/all-versions/test/utility/include/utility/EnvironmentTearDown.h +++ b/audio/common/all-versions/test/utility/include/utility/EnvironmentTearDown.h
@@ -37,7 +37,7 @@ class Environment : public ::testing::VtsHalHidlTargetTestEnvBase { public: using TearDownFunc = std::function<void()>; - void registerTearDown(TearDownFunc&& tearDown) { tearDowns.push_back(std::move(tearDown)); } + void registerTearDown(TearDownFunc&& tearDown) { tearDowns.push_front(std::move(tearDown)); } private: void HidlTearDown() override {