summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-11-29 15:19:03 +0300
committerIgor Pashev <pashev.igor@gmail.com>2019-11-29 15:19:03 +0300
commitd988e2f485539e9db48a9866414b9399438d76ab (patch)
tree31bea060a44163b862c1690a5ca476d43edfa2a9
parentbd510432eabcd2a08021c39a1687a19088ddc86d (diff)
downloadapt-d988e2f485539e9db48a9866414b9399438d76ab.tar.gz
Remove unreliable test for tmp dir
On Solaris P_tmpdir macro is "/var/tmp", not "/tmp".
-rw-r--r--test/libapt/fileutl_test.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/test/libapt/fileutl_test.cc b/test/libapt/fileutl_test.cc
index 788ab76b2..14946aa52 100644
--- a/test/libapt/fileutl_test.cc
+++ b/test/libapt/fileutl_test.cc
@@ -250,9 +250,6 @@ TEST(FileUtlTest, GetTempDir)
if (envtmp != NULL)
old_tmpdir = envtmp;
- unsetenv("TMPDIR");
- EXPECT_EQ("/tmp", GetTempDir());
-
setenv("TMPDIR", "", 1);
EXPECT_EQ("/tmp", GetTempDir());