diff --git a/Source/santactl/BUILD b/Source/santactl/BUILD index 8d1467e33..e41ccc68a 100644 --- a/Source/santactl/BUILD +++ b/Source/santactl/BUILD @@ -115,6 +115,8 @@ santa_unit_test( "//Source/common:SNTFileInfo", "//Source/common:SNTLogging", "//Source/common:SNTRule", + "//Source/common:SNTStoredEvent", + "//Source/common:SNTXPCBundleServiceInterface", "//Source/common:SNTXPCControlInterface", "@MOLCertificate", "@MOLCodesignChecker", diff --git a/Source/santactl/Commands/SNTCommandFileInfo.m b/Source/santactl/Commands/SNTCommandFileInfo.m index d9cdf1f9d..9888752b7 100644 --- a/Source/santactl/Commands/SNTCommandFileInfo.m +++ b/Source/santactl/Commands/SNTCommandFileInfo.m @@ -731,8 +731,10 @@ - (void)printInfoForFile:(NSString *)path { }]; int secondsToWait = 30; - if (dispatch_semaphore_wait(sema, dispatch_time(DISPATCH_TIME_NOW, secondsToWait * NSEC_PER_SEC))) { - fprintf(stderr, "The bundle service did not finish collecting hashes within %d seconds\n", secondsToWait); + if (dispatch_semaphore_wait(sema, + dispatch_time(DISPATCH_TIME_NOW, secondsToWait * NSEC_PER_SEC))) { + fprintf(stderr, "The bundle service did not finish collecting hashes within %d seconds\n", + secondsToWait); } outputDict[kBundleInfo] = bundleInfo;