| // Copyright 2020 The Fuchsia Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| #include "src/storage/fs_test/fs_test_fixture.h" | |
| #include <zircon/errors.h> | |
| namespace fs_test { | |
| BaseFilesystemTest::~BaseFilesystemTest() { | |
| if (fs_.is_mounted()) { | |
| EXPECT_EQ(fs_.Unmount().status_value(), ZX_OK); | |
| } | |
| EXPECT_EQ(fs_.Fsck().status_value(), ZX_OK); | |
| } | |
| } // namespace fs_test |