From 8c4429408716d9890a98a48c246d616dbfea7e31 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 6 Oct 2019 21:50:27 +0200 Subject: tests: use /var/tmp by default On Fedora, /tmp is tmpfs, which behaves differently than ext4 (inode numbers are never reused, for example). Use /var/tmp, which is ext4 on Fedora, to get a more realistic test environment. This also allows us to drop the xattr workaround. --- tests/test_helpers/helpers.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'tests/test_helpers/helpers.go') diff --git a/tests/test_helpers/helpers.go b/tests/test_helpers/helpers.go index df71e52..17d2f98 100644 --- a/tests/test_helpers/helpers.go +++ b/tests/test_helpers/helpers.go @@ -44,14 +44,6 @@ var DefaultPlainDir string // DefaultCipherDir is TmpDir + "/default-cipher" var DefaultCipherDir string -// SwitchTMPDIR changes TMPDIR and hence the directory the test are performed in. -// This is used when you want to perform tests on a special filesystem. The -// xattr tests cannot run on tmpfs and use /var/tmp instead of /tmp. -func SwitchTMPDIR(newDir string) { - os.Setenv("TMPDIR", newDir) - doInit() -} - func init() { doInit() } -- cgit v1.2.3