]> www.infradead.org Git - users/hch/misc.git/commitdiff
tools build: Remove get_current_dir_name feature check
authorIan Rogers <irogers@google.com>
Fri, 3 Oct 2025 17:56:13 +0000 (10:56 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 3 Oct 2025 19:49:11 +0000 (16:49 -0300)
As perf no longer tests for this feature, and it was the only user,
remove the feature test.

Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
[ Remove the call to main_test_get_current_dir_name() from main() in test-all.c, otherwise it will always fail ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/build/Makefile.feature
tools/build/feature/Makefile
tools/build/feature/test-all.c
tools/build/feature/test-get_current_dir_name.c [deleted file]

index 531f8fc4f7df9943118f7042b524398d6ff1abd0..182b4fb50e0dfdfa8d37f12396d7c897a3174ddc 100644 (file)
@@ -68,7 +68,6 @@ FEATURE_TESTS_BASIC :=                  \
         libdw                           \
         eventfd                         \
         fortify-source                  \
-        get_current_dir_name            \
         gettid                         \
         glibc                           \
         libbfd                          \
index b41a42818d8ac232ade78ecb41363d26ce2a9471..d13d2a1f44fe7acd9750bcb80862dae21d7da0e0 100644 (file)
@@ -8,7 +8,6 @@ FILES=                                          \
          test-libdw.bin                         \
          test-eventfd.bin                       \
          test-fortify-source.bin                \
-         test-get_current_dir_name.bin          \
          test-glibc.bin                         \
          test-gtk2.bin                          \
          test-gtk2-infobar.bin                  \
@@ -147,9 +146,6 @@ $(OUTPUT)test-libelf.bin:
 $(OUTPUT)test-eventfd.bin:
        $(BUILD)
 
-$(OUTPUT)test-get_current_dir_name.bin:
-       $(BUILD)
-
 $(OUTPUT)test-glibc.bin:
        $(BUILD)
 
index 2df593593b6ec15e0b3b575d517e53dc6d186b79..8a354b81417c6fcc357ef01952f8043579dec442 100644 (file)
 # include "test-libelf.c"
 #undef main
 
-#define main main_test_get_current_dir_name
-# include "test-get_current_dir_name.c"
-#undef main
-
 #define main main_test_gettid
 # include "test-gettid.c"
 #undef main
@@ -155,7 +151,6 @@ int main(int argc, char *argv[])
        main_test_libpython();
        main_test_hello();
        main_test_libelf();
-       main_test_get_current_dir_name();
        main_test_gettid();
        main_test_glibc();
        main_test_libdw();
diff --git a/tools/build/feature/test-get_current_dir_name.c b/tools/build/feature/test-get_current_dir_name.c
deleted file mode 100644 (file)
index c3c2016..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-#define _GNU_SOURCE
-#include <unistd.h>
-#include <stdlib.h>
-
-int main(void)
-{
-       free(get_current_dir_name());
-       return 0;
-}
-#undef _GNU_SOURCE