From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vorel Date: Fri, 21 Dec 2018 13:22:06 +0100 Subject: [LTP] [PATCH v2] Test statx syscall for SYNC_FLAGS In-Reply-To: <7723ae02218c2bbca1a40d9c701a7bb2.squirrel@pike.zilogic.com> References: <20180917075248.28004-1-kewal@zilogic.com> <20181220082009.GA27700@dell5510> <7723ae02218c2bbca1a40d9c701a7bb2.squirrel@pike.zilogic.com> Message-ID: <20181221122206.GC25762@dell5510> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi Kewal, > > One more thing, you need to define _GNU_SOURCE here as it's needed for > > glibc and > > thus used for detection in m4/ltp-statx.m4. > > #define _GNU_SOURCE > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include "tst_test.h" > >> +#include "lapi/stat.h" > > Without it it fails on glibc >= 2.28 > > https://travis-ci.org/pevik/ltp/builds/470077800 > > I thing it'd be better to remove _GNU_SOURCE from statx0*.c and put it > > into > > lapi/stat.h. > These changes have already been made in v5 of this test case. This patch > has been renamed to syscalls/statx: Add test for sync flags. Waiting for > the tst_get_tmpdir() function to be ported to new library for the patch to > be merged. ok, I'm sorry, I got confused as you're both working on the same test. But the problem remain even on v5 [1]: missing _GNU_SOURCE definition while using lapi/stat.h. > Regards, > Vaishnavi D Kind regards, Petr [1] https://patchwork.ozlabs.org/patch/1011904/