[CRIU] test/zdtm/cwd00: remove redundant chdir()
Yicheng Qin
yichengq at google.com
Tue Aug 6 19:36:32 EDT 2013
From: Yicheng Qin <yichengq at google.com>
Subject: [PATCH] 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 at google.com>
---
test/zdtm/live/static/cwd00.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/test/zdtm/live/static/cwd00.c b/test/zdtm/live/static/cwd00.c
index abdd3d9..49ed2e3 100644
--- a/test/zdtm/live/static/cwd00.c
+++ b/test/zdtm/live/static/cwd00.c
@@ -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;
}
--
1.8.3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130806/094d7ff3/attachment.html>
More information about the CRIU
mailing list