Home
last modified time | relevance | path

Searched refs:old_cwd (Results 1 – 1 of 1) sorted by relevance

/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dbpf_obj_pinning.c127 char abs_path[PATH_MAX], old_cwd[PATH_MAX]; in validate_pin() local
132 old_cwd[0] = '\0'; in validate_pin()
141 ASSERT_OK_PTR(getcwd(old_cwd, sizeof(old_cwd)), "getcwd"); in validate_pin()
161 if (old_cwd[0]) in validate_pin()
162 ASSERT_OK(chdir(old_cwd), "restore_cwd"); in validate_pin()
187 char abs_path[PATH_MAX], old_cwd[PATH_MAX]; in validate_get() local
197 old_cwd[0] = '\0'; in validate_get()
206 ASSERT_OK_PTR(getcwd(old_cwd, sizeof(old_cwd)), "getcwd"); in validate_get()
226 if (old_cwd[0]) in validate_get()
227 ASSERT_OK(chdir(old_cwd), "restore_cwd"); in validate_get()