aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-03-18 15:53:49 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-03-18 15:53:49 +0200
commite283b08481cfec9aa55b3ddbf369d632c7aa7b0f (patch)
tree3186eb9775f0cbd00fdc6436a05e4b73546652e5 /tests
parent4e2024e2e6b8309f2db6548e04e920f565a84b0b (diff)
Add fdstat()fdstat
Diffstat (limited to 'tests')
-rw-r--r--tests/lz4/driver.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/lz4/driver.cxx b/tests/lz4/driver.cxx
index e3da5e6..e2fd537 100644
--- a/tests/lz4/driver.cxx
+++ b/tests/lz4/driver.cxx
@@ -24,14 +24,10 @@ try
if (argv[1][1] == 'c')
{
- // @@ TODO: would be nice to get it from fd.
- //
- entry_stat st (path_entry (argv[2], true /* follow_symlinks */).second);
-
lz4::compress (ofs, ifs,
1 /* compression_level */,
4 /* block_size_id (64KB) */,
- st.size);
+ fdstat (ifs.fd ()).size);
}
else
{