aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-02-01 18:51:29 +0000
committerMark Kettenis <kettenis@gnu.org>2004-02-01 18:51:29 +0000
commit005bc093f67f06abc6829ec52cf5b1f5db2a9dc1 (patch)
treedf7caf0dcd961e33a97a7068959a9c7a7fe9ef54 /gdb/testsuite
parentfa5281d02b823b7a847bea43a39d6bcc7b75580a (diff)
downloadgdb-005bc093f67f06abc6829ec52cf5b1f5db2a9dc1.zip
gdb-005bc093f67f06abc6829ec52cf5b1f5db2a9dc1.tar.gz
gdb-005bc093f67f06abc6829ec52cf5b1f5db2a9dc1.tar.bz2
* gdb.base/fileio.c (test_open): Replace O_RDONLY with O_RDWR such
that opening the file succeeds on OpenBSD.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/fileio.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 1081a11..fc7a664 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2004-02-01 Mark Kettenis <kettenis@gnu.org>
+
+ * gdb.base/fileio.c (test_open): Replace O_RDONLY with O_RDWR such
+ that opening the file succeeds on OpenBSD.
+
2004-02-01 Daniel Jacobowitz <drow@mvista.com>
* gdb.threads/thread-specific.c: New file.
diff --git a/gdb/testsuite/gdb.base/fileio.c b/gdb/testsuite/gdb.base/fileio.c
index 4fda0fd..c9ef715 100644
--- a/gdb/testsuite/gdb.base/fileio.c
+++ b/gdb/testsuite/gdb.base/fileio.c
@@ -75,7 +75,7 @@ test_open ()
/* Test opening */
errno = 0;
- ret = open (FILENAME, O_CREAT | O_TRUNC | O_RDONLY, S_IWUSR | S_IRUSR);
+ ret = open (FILENAME, O_CREAT | O_TRUNC | O_RDWR, S_IWUSR | S_IRUSR);
printf ("open 1: ret = %d, errno = %d %s\n", ret, errno,
ret >= 0 ? "OK" : "");
if (ret >= 0)