Searched refs:old_cwd (Results 1 – 2 of 2) sorted by relevance
127 char abs_path[PATH_MAX], old_cwd[PATH_MAX]; in validate_pin() local132 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() local197 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()
188 old_cwd = os.getcwd()204 os.chdir(old_cwd)