Commit 168b7ca7 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

zdtm: remove extra code from file_fown

The testcase is buggy -- the signal is delivered _before_ we checkpoint
and restore it, thus it checks nothing. But after the fix test fails,
due to bug in fowners restore. Will fix it later.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent b026e59c
......@@ -101,14 +101,6 @@ int main(int argc, char ** argv)
fcntl(ssk_pair[0], F_SETFL, fcntl(ssk_pair[0], F_GETFL) | O_NONBLOCK | O_ASYNC);
test_msg("main owner ssk_pair[0]: %d\n", fcntl(ssk_pair[0], F_GETOWN));
write(ssk_pair[0], SK_DATA, sizeof(SK_DATA));
read(ssk_pair[1], &buf, sizeof(buf));
if (strcmp(buf, SK_DATA)) {
fail("data corrupted\n");
exit(1);
}
test_msg("stream : '%s'\n", buf);
if (setresuid(-1, euid, -1)) {
fail("setresuid failed");
exit(1);
......@@ -126,10 +118,6 @@ int main(int argc, char ** argv)
if (pid == 0) {
int v = 1;
write(pipes[1], &v, sizeof(v));
read(pipes[0], &v, sizeof(v));
MAP_SYNC(map) = 1;
while (MAP_SYNC(map) != 3)
......
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