From: Paul Floyd Date: Sun, 20 Jul 2025 05:46:47 +0000 (+0200) Subject: Linux regtest: fix build of tests on old systems without openat2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9f166b67728202906ff8f52a9e5c90ff25543fc;p=thirdparty%2Fvalgrind.git Linux regtest: fix build of tests on old systems without openat2 --- diff --git a/none/tests/linux/Makefile.am b/none/tests/linux/Makefile.am index c20b2d2d0..7bfcedc86 100644 --- a/none/tests/linux/Makefile.am +++ b/none/tests/linux/Makefile.am @@ -27,7 +27,6 @@ check_PROGRAMS = \ brk-overflow1 \ brk-overflow2 \ bug498317 \ - bug506910 \ clonev \ mremap \ mremap2 \ @@ -35,10 +34,13 @@ check_PROGRAMS = \ mremap4 \ mremap5 \ mremap6 \ - open_client \ pthread-stack \ stack-overflow +if HAVE_OPENAT2 + check_PROGRAMS += bug506910 open_client +endif + if HAVE_NR_MEMBARRIER check_PROGRAMS += membarrier endif @@ -48,9 +50,11 @@ AM_CFLAGS += $(AM_FLAG_M3264_PRI) AM_CXXFLAGS += $(AM_FLAG_M3264_PRI) # Special needs +if HAVE_OPENAT2 bug506910_SOURCES = bug506910.cpp -clonev_LDADD = -lpthread open_client_SOURCES = open_client.cpp +endif +clonev_LDADD = -lpthread pthread_stack_LDADD = -lpthread stack_overflow_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ \ diff --git a/none/tests/linux/bug506910.vgtest b/none/tests/linux/bug506910.vgtest index 28e3f2975..b23362548 100644 --- a/none/tests/linux/bug506910.vgtest +++ b/none/tests/linux/bug506910.vgtest @@ -1 +1,2 @@ +prereq: test -x bug506910 prog: bug506910 diff --git a/none/tests/linux/open_client.vgtest b/none/tests/linux/open_client.vgtest index 6b930efe6..05eba98bb 100644 --- a/none/tests/linux/open_client.vgtest +++ b/none/tests/linux/open_client.vgtest @@ -1,2 +1,3 @@ +prereq: test -x open_client prog: open_client vgopts: -q