summaryrefslogtreecommitdiff
path: root/test/scopedfile.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-06-16 18:05:00 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-06-16 18:15:59 +0200
commit2abc107b24f73b8c4664189c34196d9a27a3e339 (patch)
treeb7067a45f7294dbd143c410bdfb690157c976e3c /test/scopedfile.cc
parente694a23ab28686ecc0635c2ac8c625e743b89a3b (diff)
Port the rest of the unittests to DGUnit and remove the CppUnit dependency.
Diffstat (limited to 'test/scopedfile.cc')
-rw-r--r--test/scopedfile.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/scopedfile.cc b/test/scopedfile.cc
index 02af3f8..e63972e 100644
--- a/test/scopedfile.cc
+++ b/test/scopedfile.cc
@@ -43,7 +43,8 @@ ScopedFile::ScopedFile(const std::string& data)
char templ[] = "/tmp/dg-scoped-file-XXXXXX"; // buffer for filename
pimpl->fd = mkstemp(templ);
pimpl->filename = templ;
- write(pimpl->fd, data.data(), data.size());
+ auto sz = write(pimpl->fd, data.data(), data.size());
+ (void)sz;
close(pimpl->fd);
}