From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Hrubis Date: Mon, 17 Feb 2020 14:36:38 +0100 Subject: [LTP] [PATCH 2/7] syscalls/fsopen: New tests In-Reply-To: References: Message-ID: <20200217133638.GB14410@rei> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi! > > + SAFE_CLOSE(TST_RET); > > + > > + TEST(umount(MNTPOINT)); > > + > > + tst_res(TPASS, "fsopen() passed"); > > + > > +out: > > + SAFE_CLOSE(fd); > > +} > > + > > +static struct tst_test test = { > > + .min_kver = "5.2", > > > > I suggest removing .min_kver check in all of the tests to let they can be > running on many distributions(which backport the features). If we do that we have to explicitely check for ENOSYS errno in each test, quite possibly with a dummy call to the tested syscall in test setup, because once these calls gets libc wrappers we will no longer call the tst_syscall() that checks for it. -- Cyril Hrubis chrubis@suse.cz