[vlc-commits] [Git][videolan/vlc][master] test: media: don't check directory size

Thomas Guillem (@tguillem) gitlab at videolan.org
Thu Dec 16 14:33:31 UTC 2021



Thomas Guillem pushed to branch master at VideoLAN / VLC


Commits:
c926b2ce by Thomas Guillem at 2021-12-16T14:18:50+00:00
test: media: don't check directory size

Fixes #26367

- - - - -


1 changed file:

- test/libvlc/media.c


Changes:

=====================================
test/libvlc/media.c
=====================================
@@ -244,10 +244,8 @@ static void subitem_added(const libvlc_event_t *event, void *user_data)
 
             ret = libvlc_media_get_stat(m, libvlc_media_stat_size, &value);
             assert(ret == 1);
-            /* All files size are 0, directory size is either 4096 or 0 */
-            if (libvlc_media_get_type(m) == libvlc_media_type_directory)
-                assert(value == 4096 || value == 0);
-            else
+            /* All files size are 0, directory size depends on the FS. */
+            if (libvlc_media_get_type(m) != libvlc_media_type_directory)
                 assert(value == 0);
 
             ret = libvlc_media_get_stat(m, libvlc_media_stat_mtime, &value);



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c926b2ce5457cdacfd5bce0d1e1861e79c8291c4

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c926b2ce5457cdacfd5bce0d1e1861e79c8291c4
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list