diff options
author | Evan Martin <martine@danga.com> | 2013-04-19 21:32:29 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2013-04-19 21:32:59 (GMT) |
commit | 0275ead49797dc5b5723d89205bafcd7c313a76d (patch) | |
tree | b9b4897a37d9afddf5d2ccc387fb0972f71d9a82 /src/disk_interface_test.cc | |
parent | 9b6b1fd44a589c3725947280ff5a2ce8fc50a387 (diff) | |
download | Ninja-0275ead49797dc5b5723d89205bafcd7c313a76d.zip Ninja-0275ead49797dc5b5723d89205bafcd7c313a76d.tar.gz Ninja-0275ead49797dc5b5723d89205bafcd7c313a76d.tar.bz2 |
make DiskInterfaceTest.StatBadPath quiet
Add a flag to temporarily suppress error output.
Fixes issue #281.
Diffstat (limited to 'src/disk_interface_test.cc')
-rw-r--r-- | src/disk_interface_test.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/disk_interface_test.cc b/src/disk_interface_test.cc index 9b43d0f..55822a6 100644 --- a/src/disk_interface_test.cc +++ b/src/disk_interface_test.cc @@ -60,6 +60,7 @@ TEST_F(DiskInterfaceTest, StatMissingFile) { } TEST_F(DiskInterfaceTest, StatBadPath) { + disk_.quiet_ = true; #ifdef _WIN32 string bad_path("cc:\\foo"); EXPECT_EQ(-1, disk_.Stat(bad_path)); @@ -67,6 +68,7 @@ TEST_F(DiskInterfaceTest, StatBadPath) { string too_long_name(512, 'x'); EXPECT_EQ(-1, disk_.Stat(too_long_name)); #endif + disk_.quiet_ = false; } TEST_F(DiskInterfaceTest, StatExistingFile) { |