test/Makefile: ensure statx is only added once
@@ -171,21 +171,16 @@ test_srcs := \
skip-cqe.c \
# EOL
-
all_targets :=
include ../Makefile.quiet
-
ifdef CONFIG_HAVE_STATX
test_srcs += statx.c
-endif
-
-ifdef CONFIG_HAVE_GLIBC_STATX
+else ifdef CONFIG_HAVE_GLIBC_STATX
test_srcs += statx.c
endif
all_targets += statx.t
-
ifdef CONFIG_HAVE_CXX
test_srcs += sq-full-cpp.cc
endif
