Hi!
> > +}
> > +
> > +static void wait_io_ready(void)
> > +{
> > +   pid_t child;
> > +   int i;
> > +
> > +   fflush(stdout);
> > You should use tst_flush() or tst_fork() instead.
> >
> > Note: I've just added the tst_fork() and updated the test writing
> >       guidelines.
> >
> >> +  child = FORK_OR_VFORK();
> > The rest of the testcase would not run on uClinux so there is no reason
> > to use FORK_OR_VFORK() instead of fork().
> You said that the rest of the testcase would not run on uClinux, so
> we should use fork or tst_fork() directly.
> 
> Now I couldn't figure it out why the rest of the testcase would not run on 
> uClinux,
> Makefile in syscalls does not filter out the fcntl directory. Could you give 
> me some
> hint about this :-)

There is no fork() on uClinux, you have to emulate it using vfork()
which starts a new process but the memory of the two processes is still
shared (because there is no MMU) and if you do anything else than exec()
the result is undefined. To overcome this testcases ported to uClinux
self exec itself with special parameter that tells the test to run the
child function directly. Look at the lib/self_exec.c source.

-- 
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to