diff options
Diffstat (limited to 'src/tests/common/fdset_tests.c')
-rw-r--r-- | src/tests/common/fdset_tests.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tests/common/fdset_tests.c b/src/tests/common/fdset_tests.c index 627829e..d7b29fa 100644 --- a/src/tests/common/fdset_tests.c +++ b/src/tests/common/fdset_tests.c @@ -14,6 +14,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <config.h> #include <stdlib.h> #include <stdint.h> #include <sys/time.h> @@ -83,7 +84,9 @@ void* thr_action(void *arg) /* Write pattern. */ char pattern = WRITE_PATTERN; - (void)write(*fd, &pattern, WRITE_PATTERN_LEN); + if (write(*fd, &pattern, WRITE_PATTERN_LEN) == -1) { + // Error. + } return NULL; } |