From b1819143c54f2ba4ccfa8c8a4a257028248f75a4 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 1 Jan 2019 23:01:06 +0100 Subject: tests: make MountInfo field accessible Tests outside the test_helpers package may want to look at this. --- tests/test_helpers/mount_unmount.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/test_helpers/mount_unmount.go b/tests/test_helpers/mount_unmount.go index e2eaf1f..0ece781 100644 --- a/tests/test_helpers/mount_unmount.go +++ b/tests/test_helpers/mount_unmount.go @@ -18,9 +18,9 @@ var MountInfo map[string]mountInfo type mountInfo struct { // PID of the running gocryptfs process. Set by Mount(). - pid int + Pid int // List of open FDs of the running gocrypts process. Set by Mount(). - fds []string + Fds []string } // Mount CIPHERDIR "c" on PLAINDIR "p" @@ -125,8 +125,8 @@ func UnmountPanic(dir string) { // resulting error. func UnmountErr(dir string) (err error) { var fdsNow []string - pid := MountInfo[dir].pid - fds := MountInfo[dir].fds + pid := MountInfo[dir].Pid + fds := MountInfo[dir].Fds if pid <= 0 { fmt.Printf("UnmountErr: %q was not found in MountInfo, cannot check for FD leaks\n", dir) } -- cgit v1.2.3