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

This is usefull for running vtest under apitrace.

Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Jakob Bornecrantz 6 years ago committed by Dave Airlie
parent 938352fab2
commit 1d35f3e3d4
  1. 7
      vtest/vtest_server.c

@ -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);

Loading…
Cancel
Save