Some distros enable _FORTIFY_SOURCE by default, which caught a failure
to check the result of "write" in scoped_mmap-selftests.c. This patch
fixes the problem.
ChangeLog
2018-08-08 Tom Tromey <tom@tromey.com>
* unittests/scoped_mmap-selftests.c: Check result of "write".
+2018-08-08 Tom Tromey <tom@tromey.com>
+
+ * unittests/scoped_mmap-selftests.c: Check result of "write".
+
2018-08-08 Jim Wilson <jimw@sifive.com>
* riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
int fd = mkstemp (filename);
SELF_CHECK (fd >= 0);
- write (fd, "Hello!", 7);
+ SELF_CHECK (write (fd, "Hello!", 7) == 7);
close (fd);
gdb::unlinker unlink_test_file (filename);