@@ -68,11 +68,13 @@ public FileTrackerTests()
68
68
Environment . ExpandEnvironmentVariables ( "%windir%\\ system32;%windir%" ) ) ;
69
69
}
70
70
71
+ #if ENABLE_TRACKER_TESTS // https://github.com/dotnet/msbuild/issues/649
71
72
// Call StopTrackingAndCleanup here, just in case one of the unit tests failed before it called it
72
73
// In real code StopTrackingAndCleanup(); would always be in a finally {} block.
73
74
FileTracker . StopTrackingAndCleanup ( ) ;
74
75
FileTrackerTestHelper . CleanTlogs ( ) ;
75
76
FileTracker . SetThreadCount ( 1 ) ;
77
+ #endif
76
78
}
77
79
78
80
public void Dispose ( )
@@ -83,7 +85,6 @@ public void Dispose()
83
85
Environment . SetEnvironmentVariable ( "PATH" , s_oldPath ) ;
84
86
s_oldPath = null ;
85
87
}
86
-
87
88
FileTrackerTestHelper . CleanTlogs ( ) ;
88
89
}
89
90
@@ -837,11 +838,9 @@ public void FileTrackerFindStrInX86X64ChainRepeatCommand()
837
838
FileTrackerTestHelper . AssertFoundStringInTLog ( Path . GetFullPath ( "test.in" ) . ToUpperInvariant ( ) , tlogFiles [ 0 ] ) ;
838
839
}
839
840
840
- [ Fact ( Skip = "FileTracker tests require VS2015 Update 3 or a packaged version of Tracker.exe https://github.com/dotnet/msbuild/issues/649" ) ]
841
+ [ Fact ]
841
842
public void FileTrackerFileIsUnderPath ( )
842
843
{
843
- Console . WriteLine ( "Test: FileTrackerFileIsUnderPath" ) ;
844
-
845
844
// YES: Both refer to something under baz, so yes this is on the path
846
845
Assert . True ( FileTracker . FileIsUnderPath ( @"c:\foo\bar\baz\" , @"c:\foo\bar\baz\" ) ) ;
847
846
@@ -883,11 +882,9 @@ public void FileTrackerFileIsUnderPath()
883
882
Assert . False ( FileTracker . FileIsUnderPath ( @"c:\foo\rumble.cpp" , @"c:\foo\rumble\" ) ) ;
884
883
}
885
884
886
- [ Fact ( Skip = "FileTracker tests require VS2015 Update 3 or a packaged version of Tracker.exe https://github.com/dotnet/msbuild/issues/649" ) ]
885
+ [ Fact ]
887
886
public void FileTrackerFileIsExcludedFromDependencies ( )
888
887
{
889
- Console . WriteLine ( "Test: FileTrackerFileIsExcludedFromDependencies" ) ;
890
-
891
888
string applicationDataPath = Environment . GetFolderPath ( Environment . SpecialFolder . ApplicationData ) ;
892
889
string localApplicationDataPath = Environment . GetFolderPath ( Environment . SpecialFolder . LocalApplicationData ) ;
893
890
string localLowApplicationDataPath = Path . Combine ( Environment . GetFolderPath ( Environment . SpecialFolder . UserProfile ) , "AppData\\ LocalLow" ) ;
0 commit comments