mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 09:39:13 +00:00
test/zdtm/cwd00: remove redundant chdir()
Label 'out' and chdir() below it are just redundant. Remove them to make test simple. Signed-off-by: Yicheng Qin <yichengq@google.com> Acked-by: Andrew Vagin <avagin@parallels.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
73a6dcbc9f
commit
fdfaf0a769
1 changed files with 2 additions and 4 deletions
|
|
@ -43,17 +43,15 @@ int main(int argc, char **argv)
|
|||
|
||||
if (!getcwd(cwd2, sizeof(cwd2))) {
|
||||
fail("can't get cwd: %m\n");
|
||||
goto out;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (strcmp(cwd1, cwd2))
|
||||
fail("%s != %s\n", cwd1, cwd2);
|
||||
else
|
||||
pass();
|
||||
out:
|
||||
chdir(cwd0); /* return to the initial dir before writing out results */
|
||||
cleanup:
|
||||
chdir(cwd0);
|
||||
chdir(cwd0); /* return to the initial dir before writing out results */
|
||||
rmdir(dirname);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue