From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Welgm-00006s-TY for ltp-list@lists.sourceforge.net; Mon, 28 Apr 2014 13:33:44 +0000 Date: Mon, 28 Apr 2014 15:32:50 +0200 From: chrubis@suse.cz Message-ID: <20140428133250.GA4956@rei> References: <5357D79C.40706@oracle.com> <20140423151426.GA15663@rei.suse.cz> <535E3447.6020003@oracle.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <535E3447.6020003@oracle.com> Subject: Re: [LTP] posix_fallocate List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: Alexey Kodanev Cc: ltp-list 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 chrubis@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