aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/c/Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/c/Test.cpp')
-rw-r--r--bindings/c/Test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/bindings/c/Test.cpp b/bindings/c/Test.cpp
index c450e60..8cbaa90 100644
--- a/bindings/c/Test.cpp
+++ b/bindings/c/Test.cpp
@@ -29,6 +29,7 @@
*/
#include "ParameterFramework.h"
+#include "FullIo.hpp"
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main()
#include <catch.hpp>
@@ -84,7 +85,7 @@ struct Test
CAPTURE(errno);
REQUIRE(mFd != -1);
mPath = tmpName;
- write(mFd, content.c_str(), content.length());
+ REQUIRE(utility::fullWrite(mFd, content.c_str(), content.length()));
}
~TmpFile() {
CHECK(close(mFd) != -1);