MCPcopy Create free account
hub / github.com/apache/mesos / isExecutable

Function isExecutable

src/tests/fetcher_cache_tests.cpp:391–396  ·  view source on GitHub ↗

TODO(bernd-mesos): Use Path, not string, create Path::executable().

Source from the content-addressed store, hash-verified

389
390// TODO(bernd-mesos): Use Path, not string, create Path::executable().
391static bool isExecutable(const string& path)
392{
393 Try<bool> access = os::access(path, X_OK);
394 EXPECT_SOME(access);
395 return access.isSome() && access.get();
396}
397
398
399// Create a future that indicates that the task observed by the given

Callers 2

TEST_FFunction · 0.85
foreachFunction · 0.85

Calls 3

accessFunction · 0.85
isSomeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected