From 79cc9b4b2cc1e9a100f3bdab22c954f8541a8cc7 Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Fri, 3 Oct 2025 10:56:13 -0700 Subject: [PATCH] tools build: Remove get_current_dir_name feature check As perf no longer tests for this feature, and it was the only user, remove the feature test. Signed-off-by: Ian Rogers Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Ingo Molnar Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra [ 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 --- tools/build/Makefile.feature | 1 - tools/build/feature/Makefile | 4 ---- tools/build/feature/test-all.c | 5 ----- tools/build/feature/test-get_current_dir_name.c | 11 ----------- 4 files changed, 21 deletions(-) delete mode 100644 tools/build/feature/test-get_current_dir_name.c diff --git a/tools/build/Makefile.feature b/tools/build/Makefile.feature index 531f8fc4f7df9..182b4fb50e0df 100644 --- a/tools/build/Makefile.feature +++ b/tools/build/Makefile.feature @@ -68,7 +68,6 @@ FEATURE_TESTS_BASIC := \ libdw \ eventfd \ fortify-source \ - get_current_dir_name \ gettid \ glibc \ libbfd \ diff --git a/tools/build/feature/Makefile b/tools/build/feature/Makefile index b41a42818d8ac..d13d2a1f44fe7 100644 --- a/tools/build/feature/Makefile +++ b/tools/build/feature/Makefile @@ -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) diff --git a/tools/build/feature/test-all.c b/tools/build/feature/test-all.c index 2df593593b6ec..8a354b81417c6 100644 --- a/tools/build/feature/test-all.c +++ b/tools/build/feature/test-all.c @@ -22,10 +22,6 @@ # 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 index c3c201691b4fb..0000000000000 --- a/tools/build/feature/test-get_current_dir_name.c +++ /dev/null @@ -1,11 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE -#include -#include - -int main(void) -{ - free(get_current_dir_name()); - return 0; -} -#undef _GNU_SOURCE -- 2.47.3