Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A 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()
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Dreproducible.py188 old_cwd = os.getcwd()
204 os.chdir(old_cwd)