2017-05-18 Pedro Alves <palves@redhat.com>
+ * gdb.base/fileio.c (test_write, test_read, test_close)
+ (test_fstat): Don't print 'ret' in the fail path.
+
+2017-05-18 Pedro Alves <palves@redhat.com>
+
* gdb.base/fileio.c (stop, test_open, test_write, test_read)
(test_lseek, test_close, test_stat, test_fstat, test_isatty)
(test_system, test_rename, test_unlink, test_time): Change
close (fd);
}
else
- printf ("write 1: ret = %d, errno = %d\n", ret, errno);
+ printf ("write 1: errno = %d\n", errno);
stop ();
/* Write using invalid file descriptor */
errno = 0;
close (fd);
}
else
- printf ("write 3: ret = %d, errno = %d\n", ret, errno);
+ printf ("write 3: errno = %d\n", errno);
stop ();
}
close (fd);
}
else
- printf ("read 1: ret = %d, errno = %d\n", ret, errno);
+ printf ("read 1: errno = %d\n", errno);
stop ();
/* Read using invalid file descriptor */
errno = 0;
ret == 0 ? "OK" : "");
}
else
- printf ("close 1: ret = %d, errno = %d\n", ret, errno);
+ printf ("close 1: errno = %d\n", errno);
stop ();
/* Close an invalid file descriptor */
errno = 0;
close (fd);
}
else
- printf ("fstat 1: ret = %d, errno = %d\n", ret, errno);
+ printf ("fstat 1: errno = %d\n", errno);
stop ();
/* Fstat using invalid file descriptor */
errno = 0;