This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Fix bigcore test
- From: Andreas Schwab <schwab at suse dot de>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 27 Mar 2005 01:18:59 +0100
- Subject: Fix bigcore test
This fixes the bigcore test to not create a file with random permissions.
Committed as obvious.
Andreas.
2005-03-27 Andreas Schwab <schwab@suse.de>
* gdb.base/bigcore.c (main): Add missing mode argument in open
call.
--- gdb/testsuite/gdb.base/bigcore.c.~1.5.~ 2004-09-26 17:02:14.000000000 +0200
+++ gdb/testsuite/gdb.base/bigcore.c 2005-03-27 01:08:45.000000000 +0100
@@ -178,7 +178,8 @@ main ()
int fd;
large_off_t tmp;
unlink ("bigcore.corefile");
- fd = open ("bigcore.corefile", O_RDWR | O_CREAT | O_TRUNC | O_LARGEFILE);
+ fd = open ("bigcore.corefile", O_RDWR | O_CREAT | O_TRUNC | O_LARGEFILE,
+ 0666);
for (tmp = 1; tmp > 0; tmp <<= 1)
{
if (large_lseek (fd, tmp, SEEK_SET) > 0)
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃe 5, 90409 NÃrnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."