[vlc-commits] [Git][videolan/vlc][master] 2 commits: test: tls: use test_setup() for VLC_PLUGIN_PATH
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Sat Jun 1 11:32:20 UTC 2024
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
d2e4baf0 by Alexandre Janniaux at 2024-06-01T11:18:30+00:00
test: tls: use test_setup() for VLC_PLUGIN_PATH
test_setup() will setup the VLC_PLUGIN_PATH in a reliable way.
- - - - -
61d8527f by Alexandre Janniaux at 2024-06-01T11:18:30+00:00
test: tls: switch to TOP_SRCDIR
TOP_SRCDIR is an absolute path, meaning that the result of the test
will not depend from where the test is run.
- - - - -
1 changed file:
- test/modules/misc/tls.c
Changes:
=====================================
test/modules/misc/tls.c
=====================================
@@ -34,6 +34,8 @@
#endif
#include <poll.h>
+#include "../../libvlc/test.h"
+
#include <vlc_common.h>
#include <vlc_poll.h>
#include <vlc_modules.h>
@@ -113,7 +115,7 @@ static vlc_tls_t *securepair(vlc_thread_t *th,
return client;
}
-#define CERTDIR SRCDIR "/samples/certs"
+#define CERTDIR TOP_SRCDIR "/test/samples/certs"
#define CERTFILE CERTDIR "/certkey.pem"
static const char *const test_cert_argv[] = {
@@ -131,7 +133,7 @@ int main(void)
char *alp;
int val;
- setenv("VLC_PLUGIN_PATH", "../modules", 1);
+ test_setup();
/*** Tests with normal certs database - server cert not acceptable. ***/
vlc = libvlc_new(0, NULL);
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/0acc38bf27a65d1155b8611dacce700bad44f679...61d8527f544030f79e5301c8281abda1c8abdbaa
--
This project does not include diff previews in email notifications.
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/0acc38bf27a65d1155b8611dacce700bad44f679...61d8527f544030f79e5301c8281abda1c8abdbaa
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list