Hi!
> > That is hard to tell.
> >
> > If you care for posix_fallocate strictly POSIX conformace add it to
> > open_posix_testsuite and write the tests accordingly to the POSIX
> > specification.
> >
> > If you care about API coverage add it to the syscalls testcases and
> > share as much code with the fallocate testcases as possible.
> 
> OK, I will add it to syscalls. What I would want is to make a wrapper, 
> then substitute all calls of fallocate with it. And decision which 
> function to call decided inside wrapper using command line option. So 
> they would be called this way:
> 
> ...
> fallocate01 fallocate01
> fallocate02 fallocate02
> fallocate03 fallocate03
> 
> posix_fallocate01 fallocate01 -x
> posix_fallocate02 fallocate02 -x
> posix_fallocate03 fallocate03 -x
> ...

Or you can recompile the the binaries with -DUSE_POSIX_FALLOCATE and use
#ifdefs to choose which do you call.

Looking at the testcases you will probable need to ifdef a few test
assertions (these where mode is not 0) too.

-- 
Cyril Hrubis
chru...@suse.cz

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to