From: Paul L. <pl...@li...> - 2002-10-26 02:54:48
|
Applied to cvs tree, and will be included in the November release. Thanks a bunch for the fix. -Paul Larson On Fri, 2002-10-25 at 15:23, Manfred Spraul wrote: > mingming cao wrote: > >shmctl01 1 PASS : pid, size, # of attaches and mode are correct - > >pass #1 > >shmctl01 0 INFO : shmdt() failed - 22 > >shmctl01 0 INFO : shmdt() failed - 22 > >shmctl01 0 INFO : shmdt() failed - 22 > >shmctl01 0 INFO : shmdt() failed - 22 > > > These failures are caused by a bug in the ltp test. See the attached patch. > diff -u ltp-orig/testcases/kernel/syscalls/ipc/shmctl/shmctl01.c ltp-20021008/testcases/kernel/syscalls/ipc/shmctl/shmctl01.c > --- ltp-orig/testcases/kernel/syscalls/ipc/shmctl/shmctl01.c Tue May 21 15:55:56 2002 > +++ ltp-20021008/testcases/kernel/syscalls/ipc/shmctl/shmctl01.c Fri Oct 25 22:14:23 2002 > @@ -252,10 +252,12 @@ > > if (stat_time == FIRST) { > test = set_shmat(); > + } else { > + test = set_shared; > } > > /* do an assignement for fun */ > - (int *)test = i; > + *(int *)test = i; > > /* pause until we get a signal from stat_cleanup() */ > rval = pause(); > @@ -273,7 +275,7 @@ > } > } > /* sleep briefly to ensure correct execution order */ > - usleep(25000); > + usleep(250000); > } > > /* |