diff options
author | Ulf Adams <ulfjack@google.com> | 2016-03-23 09:18:13 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2016-03-23 12:21:08 +0000 |
commit | c73051c6baad0aaaf1fdf34d5ad19602b8df628a (patch) | |
tree | 29bfc153be8f0cc80c99bf29cff264c97cf0a70d /src/test/java/com/google/devtools/build/lib/skyframe/TimestampBuilderTestCase.java | |
parent | 8a5f5c7a9174222c13f5546e3c467309e19534d7 (diff) |
Move TimestampGranularityMonitor to CommandEnvironment.
This is one of the last pieces of state in BlazeRuntime that isn't safe to
share across command invocations.
--
MOS_MIGRATED_REVID=117910631
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/skyframe/TimestampBuilderTestCase.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/skyframe/TimestampBuilderTestCase.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/skyframe/TimestampBuilderTestCase.java b/src/test/java/com/google/devtools/build/lib/skyframe/TimestampBuilderTestCase.java index 9ddfcb5ba5..e4e15ef894 100644 --- a/src/test/java/com/google/devtools/build/lib/skyframe/TimestampBuilderTestCase.java +++ b/src/test/java/com/google/devtools/build/lib/skyframe/TimestampBuilderTestCase.java @@ -138,6 +138,7 @@ public abstract class TimestampBuilderTestCase extends FoundationTestCase { @Nullable EvaluationProgressReceiver evaluationProgressReceiver) { AtomicReference<PathPackageLocator> pkgLocator = new AtomicReference<>(new PathPackageLocator(outputBase, ImmutableList.of(rootDirectory))); + AtomicReference<TimestampGranularityMonitor> tsgmRef = new AtomicReference<>(tsgm); ExternalFilesHelper externalFilesHelper = new ExternalFilesHelper(pkgLocator, false); differencer = new RecordingDifferencer(); @@ -153,14 +154,14 @@ public abstract class TimestampBuilderTestCase extends FoundationTestCase { final InMemoryMemoizingEvaluator evaluator = new InMemoryMemoizingEvaluator( ImmutableMap.<SkyFunctionName, SkyFunction>builder() - .put(SkyFunctions.FILE_STATE, new FileStateFunction(tsgm, externalFilesHelper)) + .put(SkyFunctions.FILE_STATE, new FileStateFunction(tsgmRef, externalFilesHelper)) .put(SkyFunctions.FILE, new FileFunction(pkgLocator)) .put( SkyFunctions.ARTIFACT, new ArtifactFunction(Predicates.<PathFragment>alwaysFalse())) .put( SkyFunctions.ACTION_EXECUTION, - new ActionExecutionFunction(skyframeActionExecutor, tsgm)) + new ActionExecutionFunction(skyframeActionExecutor, tsgmRef)) .put( SkyFunctions.PACKAGE, new PackageFunction(null, null, null, null, null, null, null)) |