diff options
| author | Jakob Unterwurzacher | 2019-01-01 23:01:06 +0100 | 
|---|---|---|
| committer | Jakob Unterwurzacher | 2019-01-02 00:09:17 +0100 | 
| commit | b1819143c54f2ba4ccfa8c8a4a257028248f75a4 (patch) | |
| tree | a67579691681ffbb79543256026386ee1dd65dd4 | |
| parent | 035b3367b7a447adc5e4c1ed96706f911c08c9f8 (diff) | |
tests: make MountInfo field accessible
Tests outside the test_helpers package may want to look
at this.
| -rw-r--r-- | tests/test_helpers/mount_unmount.go | 8 | 
1 files changed, 4 insertions, 4 deletions
| 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)  	} | 
