From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Hrubis Date: Fri, 15 Feb 2019 14:25:26 +0100 Subject: [LTP] [PATCH v2] syscalls: add syscall syncfs test In-Reply-To: <20190215132251.GB26339@rei> References: <1550215053-6795-1-git-send-email-sumit.garg@linaro.org> <5C667060.7020405@cn.fujitsu.com> <20190215121611.GA14270@rei> <20190215132251.GB26339@rei> Message-ID: <20190215132526.GC26339@rei> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi! > > Thanks for the pointers. IIUC, you are referring to following change: > > > > - TEST(syncfs(fd)); > > + TEST(tst_syscall(__NR_syncfs, fd)); > > > > If yes, then I will incorporate it. > > The most complete solution is configure check + fallback definition. > > Have a look at: > > include/lapi/execveat.h > m4/ltp-execveat.m4 > configure.ac And then you have to also check for the return value to exit the test with TCONF on missing kernel support, you will most likely get EINVAL in that case as the syscall number is not known. -- Cyril Hrubis chrubis@suse.cz