From 2abc107b24f73b8c4664189c34196d9a27a3e339 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 16 Jun 2018 18:05:00 +0200 Subject: Port the rest of the unittests to DGUnit and remove the CppUnit dependency. --- test/scopedfile.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/scopedfile.cc') 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); } -- cgit v1.2.3