Commit ff145078 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

tls: fix coverage report

GCC coverage does not like exec*().
parent 2b5b2845
......@@ -148,6 +148,7 @@ int main(void)
return 77;
}
assert(!strncmp(homedir, "/tmp/vlc-test-", 14));
setenv("HOME", homedir, 1);
setenv("VLC_PLUGIN_PATH", "../modules", 1);
......@@ -237,7 +238,7 @@ int main(void)
vlc_tls_Delete(server_creds);
libvlc_release(vlc);
if (!strncmp(homedir, "/tmp/vlc-test-", 14))
if (fork() == 0)
execlp("rm", "rm", "-rf", homedir, (char *)NULL);
return 1;
return 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