Minor changes to FilesystemCopierAction.RunAsRootSimpleTest.
- Fail the test if loop devices cannot be bound.
- More detailed logging.
BUG=chromium-os:31082
TEST=Builds and runs unit tests
Change-Id: Ic8adfe08a86a91e0d45275ec8ccc31af1b481737
Reviewed-on: https://gerrit.chromium.org/gerrit/28427
Reviewed-by: Jay Srinivasan <jaysri@chromium.org>
Commit-Ready: Gilad Arnold <garnold@chromium.org>
Tested-by: Gilad Arnold <garnold@chromium.org>
diff --git a/test_utils.h b/test_utils.h
index 6d85157..8305c14 100644
--- a/test_utils.h
+++ b/test_utils.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -146,6 +146,8 @@
return dev_;
}
+ bool is_bound() const { return is_bound_; }
+
private:
std::string dev_;
bool is_bound_;