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

Method setupCommandFileAsset

src/tests/fetcher_cache_tests.cpp:349–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347
348
349void FetcherCacheTest::setupCommandFileAsset()
350{
351 commandPath = path::join(assetsDirectory, COMMAND_NAME);
352 ASSERT_SOME(os::write(commandPath, COMMAND_SCRIPT));
353
354 // Make the command file read-only, so we can discern the URI
355 // executable flag.
356 ASSERT_SOME(os::chmod(commandPath, S_IRUSR | S_IRGRP | S_IROTH));
357}
358
359
360void FetcherCacheTest::setupArchiveAsset()

Callers

nothing calls this directly

Calls 3

chmodFunction · 0.85
joinFunction · 0.50
writeFunction · 0.50

Tested by

no test coverage detected