[virglrenderer-devel] [PATCH] vtest: Add --no-loop-or-fork flag
Jakob Bornecrantz
jakob at collabora.com
Wed Aug 1 16:32:25 UTC 2018
This is usefull for running vtest under apitrace.
Signed-off-by: Jakob Bornecrantz <jakob at collabora.com>
---
vtest/vtest_server.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/vtest/vtest_server.c b/vtest/vtest_server.c
index 3868fe3..01259c1 100644
--- a/vtest/vtest_server.c
+++ b/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);
--
2.17.1
More information about the virglrenderer-devel
mailing list