Commit 4306538d authored by Daniel Vetter's avatar Daniel Vetter

tests: Sprinkle missing igt_exit() where needed.

Yay for breaking piles of tests.

This regression has been introduced with

commit 5782eca1
Author: Tim Gore <tim.gore@intel.com>
Date:   Wed Oct 1 13:25:20 2014 +0100

    lib/igt_core.c: disable lowmemorykiller during tests

Cc: Tim Gore <tim.gore@intel.com>
Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@intel.com>
parent 5782eca1
......@@ -166,5 +166,5 @@ int main(int argc, char *argv[])
free(threads);
close(fd);
return 0;
igt_exit();
}
......@@ -270,5 +270,5 @@ int main(int argc, char **argv)
} else
run(OBJECT_SIZE);
return 0;
igt_exit();
}
......@@ -329,5 +329,5 @@ int main(int argc, char **argv)
gem_close(fd, handle);
close(fd);
return 0;
igt_exit();
}
......@@ -93,5 +93,5 @@ int main(int argc, char **argv)
close(fd);
return 0;
igt_exit();
}
......@@ -230,6 +230,4 @@ int main(int argc, char **argv)
}
igt_exit();
return 0;
}
......@@ -186,5 +186,5 @@ int main(int argc, char **argv)
scratch_buf_check(&data, &dst, WIDTH - 10, HEIGHT - 10, SRC_COLOR);
}
return 0;
igt_exit();
}
......@@ -241,6 +241,4 @@ int main(int argc, char **argv)
}
igt_exit();
return 0;
}
......@@ -200,5 +200,5 @@ int main(int argc, char **argv)
for (i = 0; i < count; i++)
check_bo(fd, bo[i]->handle, start_val[i]);
return 0;
igt_exit();
}
......@@ -211,5 +211,5 @@ int main(int argc, char **argv)
for (i = 0; i < count; i++)
check_bo(batch, &buf[i], start_val[i]);
return 0;
igt_exit();
}
......@@ -527,10 +527,7 @@ int main(int argc, char **argv)
options.dontwrap ? "tests" : "wraps", wcount);
}
if (options.rounds == wcount) {
igt_debug("done %d wraps successfully\n", wcount);
return 0;
}
igt_assert(options.rounds == wcount);
return r;
igt_exit();
}
......@@ -914,5 +914,5 @@ int main(int argc, char **argv)
igt_stop_signal_helper();
return 0;
igt_exit();
}
......@@ -1443,6 +1443,4 @@ int main(int argc, char **argv)
test_access_control(fd);
igt_exit();
return 0;
}
......@@ -533,5 +533,5 @@ int main(int argc, char **argv)
check_bo(fd, handle[i], start_val[i]);
igt_info("done\n");
return 0;
igt_exit();
}
......@@ -393,5 +393,5 @@ int main(int argc, char **argv)
for (i = 0; i < count; i++)
check_bo(fd, handle[i], start_val[i]);
return 0;
igt_exit();
}
......@@ -421,5 +421,5 @@ int main(int argc, char **argv)
check_bo(fd, handle[i], start_val[i]);
igt_info("done\n");
return 0;
igt_exit();
}
......@@ -400,5 +400,5 @@ int main(int argc, char **argv)
for (i = 0; i < count; i++)
check_bo(fd, handle[i], start_val[i]);
return 0;
igt_exit();
}
......@@ -407,5 +407,5 @@ int main(int argc, char **argv)
check_bo(fd, handle[i], start_val[i]);
igt_info("done\n");
return 0;
igt_exit();
}
......@@ -786,5 +786,7 @@ out_mainloop:
out_close:
close(drm_fd);
return ret;
igt_assert(ret);
igt_exit();
}
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