|
@@ -1751,9 +1751,10 @@ TEST_F(FileSystemTest, permissions) {
|
|
|
EXPECT_TRUE(CheckPermissions(fs::set_gid_on_exe));
|
|
|
|
|
|
// Modern BSDs require root to set the sticky bit on files.
|
|
|
- // AIX without root will mask off (i.e., lose) the sticky bit on files.
|
|
|
+ // AIX and Solaris without root will mask off (i.e., lose) the sticky bit
|
|
|
+ // on files.
|
|
|
#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && \
|
|
|
- !defined(_AIX)
|
|
|
+ !defined(_AIX) && !(defined(__sun__) && defined(__svr4__))
|
|
|
EXPECT_EQ(fs::setPermissions(TempPath, fs::sticky_bit), NoError);
|
|
|
EXPECT_TRUE(CheckPermissions(fs::sticky_bit));
|
|
|
|