public void ServiceCopiesNonInboxNativeDll() { if (IsProjFSInbox()) { Assert.Ignore("Skipping test, ProjFS is inbox"); } if (!GVFSTestConfig.TestGVFSOnPath) { Assert.Ignore("Skipping test, test only enabled when --test-gvfs-on-path is set"); } NativeLibPath.ShouldBeAFile(this.fileSystem); this.Enlistment.UnmountGVFS(); this.fileSystem.DeleteFile(NativeLibPath); NativeLibPath.ShouldNotExistOnDisk(this.fileSystem); GVFSServiceProcess.StopService(); GVFSServiceProcess.StartService(); int count = 0; while (!this.fileSystem.FileExists(NativeLibPath) && count < 10) { Thread.Sleep(1000); ++count; } NativeLibPath.ShouldBeAFile(this.fileSystem); this.Enlistment.MountGVFS(); }
public void ServiceStartsPrjFltService() { this.Enlistment.UnmountGVFS(); StopPrjFlt(); GVFSServiceProcess.StopService(); GVFSServiceProcess.StartService(); ServiceController controller = new ServiceController("prjflt"); controller.WaitForStatus(ServiceControllerStatus.Running, TimeSpan.FromSeconds(10)); controller.Status.ShouldEqual(ServiceControllerStatus.Running); this.Enlistment.MountGVFS(); }
public void ServiceStartsPrjFltService() { if (!GVFSTestConfig.TestGVFSOnPath) { Assert.Ignore("Skipping test, test only enabled when --test-gvfs-on-path is set"); } this.Enlistment.UnmountGVFS(); StopPrjFlt(); GVFSServiceProcess.StopService(); GVFSServiceProcess.StartService(); ServiceController controller = new ServiceController("prjflt"); controller.WaitForStatus(ServiceControllerStatus.Running, TimeSpan.FromSeconds(10)); controller.Status.ShouldEqual(ServiceControllerStatus.Running); this.Enlistment.MountGVFS(); }
private void RestartService() { GVFSServiceProcess.StopService(); GVFSServiceProcess.StartService(); }