vtest: Use default socket name from protocol header

Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
macos/master
Jakob Bornecrantz 6 years ago
parent bb02ee0c09
commit 701c9615d4
  1. 3
      vtest/vtest_server.c

@ -172,6 +172,7 @@ int main(int argc, char **argv)
pid_t pid;
bool do_fork = true, loop = true;
struct sigaction sa;
char *socket_name = VTEST_DEFAULT_SOCKET_NAME;
#ifdef __AFL_LOOP
while (__AFL_LOOP(1000)) {
@ -212,7 +213,7 @@ while (__AFL_LOOP(1000)) {
}
}
sock = vtest_open_socket("/tmp/.virgl_test");
sock = vtest_open_socket(socket_name);
restart:
in_fd = wait_for_socket_accept(sock);
out_fd = in_fd;

Loading…
Cancel
Save