svn commit: trunk/uClibc/test/stat
vapier at uclibc.org
vapier at uclibc.org
Sun Jan 28 06:29:33 UTC 2007
Author: vapier
Date: 2007-01-27 22:29:33 -0800 (Sat, 27 Jan 2007)
New Revision: 17578
Log:
dont rely on random stack state to trigger this issue; force the default stat structs to alternative bit masks
Modified:
trunk/uClibc/test/stat/memcmp-stat.c
Changeset:
Modified: trunk/uClibc/test/stat/memcmp-stat.c
===================================================================
--- trunk/uClibc/test/stat/memcmp-stat.c 2007-01-28 06:27:47 UTC (rev 17577)
+++ trunk/uClibc/test/stat/memcmp-stat.c 2007-01-28 06:29:33 UTC (rev 17578)
@@ -72,6 +72,9 @@
int fd;
struct stat fst, st;
+ memset(&fst, 0xAA, sizeof(fst));
+ memset(&st, 0x55, sizeof(st));
+
unlink(".testfile");
fd = open(".testfile", O_WRONLY | O_CREAT | O_EXCL, 0);
if (fd < 0) {
More information about the uClibc-cvs
mailing list