@@ -711,7 +711,6 @@ int main(int argc, char** argv)
711711 // Setup timestamps
712712 const auto recordTime = ghc::filesystem::file_time_type::clock::now ();
713713 const auto sourceTime = recordTime - std::chrono::seconds (1 );
714- const auto includeTime = recordTime + std::chrono::seconds (1 );
715714
716715 // Mock source file time
717716 std::shared_ptr<OverrideResult> sourceTimeResult = CreateOverrideResult ();
@@ -736,17 +735,13 @@ int main(int argc, char** argv)
736735 CO_SETUP_OVERRIDE (OverrideInstance, Mock_exists)
737736 .WhenCalledWith <const ghc::filesystem::path&,
738737 CO_ANY_TYPE>(includePaths[1 ], CO_ANY)
739- .Returns <bool >(true )
740- .Times (1 )
741738 .AssignResult (include2ExistsResult);
742739
743740 // Mock second include file time
744741 std::shared_ptr<OverrideResult> include2TimeResult = CreateOverrideResult ();
745742 CO_SETUP_OVERRIDE (OverrideInstance, Mock_last_write_time)
746743 .WhenCalledWith <const ghc::filesystem::path&,
747744 CO_ANY_TYPE>(includePaths[1 ], CO_ANY)
748- .Returns <ghc::filesystem::file_time_type>(includeTime)
749- .Times (1 )
750745 .AssignResult (include2TimeResult);
751746
752747 std::vector<ghc::filesystem::path> includes = { includePaths[0 ], includePaths[1 ] };
@@ -759,10 +754,10 @@ int main(int argc, char** argv)
759754 sourceTimeResult->GetSucceedCount (), 1 );
760755 ssTEST_OUTPUT_ASSERT ( " First include exists should be checked" ,
761756 include1ExistsResult->GetSucceedCount (), 1 );
762- ssTEST_OUTPUT_ASSERT ( " Second include exists should be checked" ,
763- include2ExistsResult->GetSucceedCount (), 1 );
764- ssTEST_OUTPUT_ASSERT ( " Second include time should be checked" ,
765- include2TimeResult->GetSucceedCount (), 1 );
757+ ssTEST_OUTPUT_ASSERT ( " Second include exists should not be checked" ,
758+ include2ExistsResult->GetStatusCount (), 0 );
759+ ssTEST_OUTPUT_ASSERT ( " Second include time should not be checked" ,
760+ include2TimeResult->GetStatusCount (), 0 );
766761 };
767762
768763 ssTEST (" GetRecordPath Should Generate Valid And Unique Paths" )
0 commit comments