From 887d5aa8e74e20b065b9a0c9b6e99dd05815112a Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 1 Jan 2019 19:44:41 +0100 Subject: tests: teach ListFds() to check other processes --- tests/matrix/matrix_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/matrix') diff --git a/tests/matrix/matrix_test.go b/tests/matrix/matrix_test.go index 660f9d7..31527f0 100644 --- a/tests/matrix/matrix_test.go +++ b/tests/matrix/matrix_test.go @@ -74,11 +74,11 @@ func TestMain(m *testing.M) { opts = append(opts, fmt.Sprintf("-aessiv=%v", testcase.aessiv)) opts = append(opts, fmt.Sprintf("-raw64=%v", testcase.raw64)) test_helpers.MountOrExit(test_helpers.DefaultCipherDir, test_helpers.DefaultPlainDir, opts...) - before := test_helpers.ListFds() + before := test_helpers.ListFds(0) r := m.Run() // Catch fd leaks in the tests. NOTE: this does NOT catch leaks in // the gocryptfs FUSE process, but only in the tests that access it! - after := test_helpers.ListFds() + after := test_helpers.ListFds(0) if len(before) != len(after) { fmt.Printf("fd leak? before, after:\n%v\n%v\n", before, after) os.Exit(1) -- cgit v1.2.3