[vlc-devel] [PATCH] tests: realpath() doesn't do anything on Windows
Steve Lhomme
robux4 at videolabs.io
Wed Sep 14 15:38:47 CEST 2016
---
test/libvlc/media.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test/libvlc/media.c b/test/libvlc/media.c
index 61974ba..92b4a40 100644
--- a/test/libvlc/media.c
+++ b/test/libvlc/media.c
@@ -244,6 +244,7 @@ static void test_media_subitems(int argc, const char** argv)
test_media_subitems_media (media, false, true);
libvlc_media_release (media);
+#ifndef _WIN32
#define NB_LOCATIONS 2
char *subitems_realpath = realpath (subitems_path, NULL);
assert (subitems_realpath != NULL);
@@ -260,6 +261,9 @@ static void test_media_subitems(int argc, const char** argv)
libvlc_media_release (media);
}
free (subitems_realpath);
+#else
+#warning not testing subitems list via path
+#endif
#ifdef HAVE_OPENAT
/* listing directory via a fd works only if HAVE_OPENAT is defined */
--
2.8.2
More information about the vlc-devel
mailing list