Commit 11b525f3 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

zdtm: Update proc-self test

The link must be read after restore on original
file descriptor since namespace id do change between
c/r sessions.

https://bugzilla.openvz.org/show_bug.cgi?id=2599Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent b2846be8
...@@ -50,14 +50,14 @@ int main(int argc, char *argv[]) ...@@ -50,14 +50,14 @@ int main(int argc, char *argv[])
return -1; return -1;
} }
test_daemon();
test_waitsig();
if (read_fd_link(fd_self, path_orig, sizeof(path_orig))) { if (read_fd_link(fd_self, path_orig, sizeof(path_orig))) {
err("Can't fill original path"); err("Can't fill original path");
return -1; return -1;
} }
test_daemon();
test_waitsig();
fd_new = open(nspath, O_RDONLY); fd_new = open(nspath, O_RDONLY);
if (fd_new < 0) { if (fd_new < 0) {
err("Can't open %s", nspath); err("Can't open %s", nspath);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment