Skip to content

Commit 6506d3e

Browse files
lukenava-metafacebook-github-bot
authored andcommitted
Disable fetch UserInfo tests in ProcessInfoCache on mac/win
Summary: This feature is not implemented on mac/win, so lets disable the tests for now. Reviewed By: lXXXw Differential Revision: D72979448 fbshipit-source-id: 87702c3694d3b8480bced6b25b14c722a2675ed8
1 parent a23a2d9 commit 6506d3e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

eden/common/utils/test/ProcessInfoCacheTest.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,16 @@ TEST(ProcessInfoCache, fetchUserInfo) {
196196
ProcessInfoCache processInfoCache =
197197
ProcessInfoCache(ProcessInfoCache::ReadFuncConfig(true));
198198
auto info = processInfoCache.lookup(getpid());
199+
#ifdef __APPLE__
200+
// not implemented
201+
EXPECT_FALSE(info.get().userInfo.has_value());
202+
#elif _WIN32
203+
// not implemented
204+
EXPECT_FALSE(info.get().userInfo.has_value());
205+
#else
206+
// LINUX
199207
EXPECT_TRUE(info.get().userInfo.has_value());
208+
#endif
200209
}
201210
}
202211

0 commit comments

Comments
 (0)