[vlc-commits] [Git][videolan/vlc][master] macosx: Relax fixture discovery and setup timeouts in library tests
Steve Lhomme (@robUx4)
gitlab at videolan.org
Wed Nov 18 15:51:19 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
b7bec4d6 by Claudio Cambra at 2026-11-18T15:36:34+00:00
macosx: Relax fixture discovery and setup timeouts in library tests
Signed-off-by: Claudio Cambra <developer at claudiocambra.com>
- - - - -
3 changed files:
- modules/gui/macosx/tests/VLCLibraryDataTypesIntegrationTestSupport.m
- modules/gui/macosx/tests/VLCLibraryModelConcurrencyTest.m
- modules/gui/macosx/tests/VLCLibraryModelIntegrationTest.m
Changes:
=====================================
modules/gui/macosx/tests/VLCLibraryDataTypesIntegrationTestSupport.m
=====================================
@@ -125,7 +125,7 @@ static BOOL VLCLibraryDataTypesIntegrationExecuteStatements(NSArray<NSDictionary
}
});
const BOOL timedOut = dispatch_semaphore_wait(finished,
- dispatch_time(DISPATCH_TIME_NOW, 15 * NSEC_PER_SEC)) != 0;
+ dispatch_time(DISPATCH_TIME_NOW, 30 * NSEC_PER_SEC)) != 0;
if (timedOut && task.running)
kill(task.processIdentifier, SIGKILL);
// Reap the child and finish pipe I/O before the fixture database is removed.
@@ -133,7 +133,7 @@ static BOOL VLCLibraryDataTypesIntegrationExecuteStatements(NSArray<NSDictionary
dispatch_group_wait(io, DISPATCH_TIME_FOREVER);
if (timedOut || writeError != nil || readError != nil) {
NSLog(@"Fixture SQL transport failed: %@", timedOut
- ? @"helper exceeded its 15-second deadline" : writeError ?: readError);
+ ? @"helper exceeded its 30-second deadline" : writeError ?: readError);
return NO;
}
id const response = [NSJSONSerialization JSONObjectWithData:responseData options:0 error:&error];
@@ -260,15 +260,16 @@ static BOOL VLCLibraryDataTypesIntegrationWaitForMediaAdded(NSString *folderURL,
BOOL completed = NO;
if (added) {
const dispatch_time_t deadline =
- dispatch_time(DISPATCH_TIME_NOW, 10 * NSEC_PER_SEC);
+ dispatch_time(DISPATCH_TIME_NOW, 45 * NSEC_PER_SEC);
completed = dispatch_semaphore_wait(wait.semaphore, deadline) == 0 &&
wait.mediaAddedCount == wait.mediaMRLCount && !wait.failed;
}
vlc_ml_event_unregister_callback(sMediaLibrary, callback);
if (!completed) {
- NSLog(@"Fixture discovery did not finish: %zu/%zu media added, discovery failed: %d",
+ NSLog(@"Fixture discovery did not finish: %zu/%zu media added, folder added: %d, discovery failed: %d",
wait.mediaAddedCount,
wait.mediaMRLCount,
+ added,
wait.failed);
}
return completed;
@@ -354,7 +355,7 @@ BOOL VLCLibraryDataTypesIntegrationStart(void)
libvlc_InternalPlay(sLibVLC->p_libvlc_int);
const dispatch_time_t interfaceDeadline =
- dispatch_time(DISPATCH_TIME_NOW, 5 * NSEC_PER_SEC);
+ dispatch_time(DISPATCH_TIME_NOW, 15 * NSEC_PER_SEC);
if (dispatch_semaphore_wait(sIntfReady, interfaceDeadline) != 0) {
VLCLibraryDataTypesIntegrationStop();
return NO;
=====================================
modules/gui/macosx/tests/VLCLibraryModelConcurrencyTest.m
=====================================
@@ -50,7 +50,7 @@ typedef NS_ENUM(NSUInteger, VLCLibraryModelSupersedingAction) {
VLCLibraryDataTypesIntegrationPrepareFactoryFixtures();
[ready fulfill];
});
- [self waitForExpectations:@[ ready ] timeout:20.];
+ [self waitForExpectations:@[ ready ] timeout:60.];
XCTAssertTrue(prepared);
}
=====================================
modules/gui/macosx/tests/VLCLibraryModelIntegrationTest.m
=====================================
@@ -49,7 +49,7 @@
VLCLibraryDataTypesIntegrationPrepareFactoryFixtures();
[initialized fulfill];
});
- [self waitForExpectations:@[ initialized ] timeout:20.];
+ [self waitForExpectations:@[ initialized ] timeout:60.];
XCTAssertTrue(prepared);
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b7bec4d68a3cd99a1bcc58489cf8466184c1a35b
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b7bec4d68a3cd99a1bcc58489cf8466184c1a35b
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list