Commit 1d35f3e3 authored by Jakob Bornecrantz's avatar Jakob Bornecrantz Committed by Dave Airlie

vtest: Add --no-loop-or-fork flag

This is usefull for running vtest under apitrace.
Signed-off-by: Jakob Bornecrantz's avatarJakob Bornecrantz <jakob@collabora.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 938352fa
......@@ -164,9 +164,12 @@ while (__AFL_LOOP(1000)) {
#endif
if (argc > 1) {
if (!strcmp(argv[1], "--no-fork"))
if (!strcmp(argv[1], "--no-loop-or-fork")) {
do_fork = false;
loop = false;
} else if (!strcmp(argv[1], "--no-fork")) {
do_fork = false;
else {
} else {
ret = open(argv[1], O_RDONLY);
if (ret == -1) {
perror(0);
......
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