Index: rlz/lib/rlz_lib_test.cc |
diff --git a/rlz/lib/rlz_lib_test.cc b/rlz/lib/rlz_lib_test.cc |
index 338473baad6d19e8096837d8be029d8a3971760b..86e659cb48af896586c174a6f6cebebbed0e60c9 100644 |
--- a/rlz/lib/rlz_lib_test.cc |
+++ b/rlz/lib/rlz_lib_test.cc |
@@ -788,7 +788,7 @@ TEST_F(RlzLibTest, BrandingWithStatefulEvents) { |
EXPECT_STREQ("events=I7S", value); |
} |
-#if defined(OS_MACOSX) |
+#if defined(OS_POSIX) |
class ReadonlyRlzDirectoryTest : public RlzLibTestNoMachineState { |
protected: |
virtual void SetUp() OVERRIDE; |
@@ -799,7 +799,6 @@ void ReadonlyRlzDirectoryTest::SetUp() { |
// Make the rlz directory non-writeable. |
int chmod_result = chmod(temp_dir_.path().value().c_str(), 0500); |
ASSERT_EQ(0, chmod_result); |
- |
} |
TEST_F(ReadonlyRlzDirectoryTest, WriteFails) { |
@@ -873,7 +872,7 @@ TEST_F(RlzLibTest, ConcurrentStoreAccessWithProcessExitsWhileLockHeld) { |
rlz_lib::IE_DEFAULT_SEARCH, rlz_lib::INSTALL)); |
} |
-TEST_F(RlzLibTest, LockAcquistionSucceedsButPlistCannotBeCreated) { |
+TEST_F(RlzLibTest, LockAcquistionSucceedsButStoreFileCannotBeCreated) { |
// See the comment at the top of WriteFails. |
if (!rlz_lib::SupplementaryBranding::GetBrand().empty()) |
return; |
@@ -881,7 +880,7 @@ TEST_F(RlzLibTest, LockAcquistionSucceedsButPlistCannotBeCreated) { |
// Create a directory where the rlz file is supposed to appear. This way, |
// the lock file can be created successfully, but creation of the rlz file |
// itself will fail. |
- int mkdir_result = mkdir(rlz_lib::testing::RlzPlistFilenameStr().c_str(), |
+ int mkdir_result = mkdir(rlz_lib::testing::RlzStoreFilenameStr().c_str(), |
0500); |
ASSERT_EQ(0, mkdir_result); |