summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux/statfs.cc
diff options
context:
space:
mode:
authorAdam Barth <abarth@google.com>2021-08-03 19:51:37 -0700
committergVisor bot <gvisor-bot@google.com>2021-08-03 19:54:35 -0700
commit681e5419042ba6b00d50c82d64c0d556e28de0c7 (patch)
treecb0cc3aa59a2661e652b83c608bcd84641300c30 /test/syscalls/linux/statfs.cc
parent8caf231cb14128938a08208a0580e37e20be1fc1 (diff)
Use GetAbsoluteTestTmpdir() rather than hard-code "/tmp"
This change makes these tests easier to run on systems that have their temp directory in another location. PiperOrigin-RevId: 388601202
Diffstat (limited to 'test/syscalls/linux/statfs.cc')
-rw-r--r--test/syscalls/linux/statfs.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/syscalls/linux/statfs.cc b/test/syscalls/linux/statfs.cc
index d4ea8e026..d057cdc09 100644
--- a/test/syscalls/linux/statfs.cc
+++ b/test/syscalls/linux/statfs.cc
@@ -28,7 +28,7 @@ namespace testing {
namespace {
TEST(StatfsTest, CannotStatBadPath) {
- auto temp_file = NewTempAbsPathInDir("/tmp");
+ auto temp_file = NewTempAbsPath();
struct statfs st;
EXPECT_THAT(statfs(temp_file.c_str(), &st), SyscallFailsWithErrno(ENOENT));