Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
a65cd983 by Thomas Guillem at 2024-02-07T09:59:39+00:00
test: don't change SIGALRM action

In order to print the reason of the failure.
Passing from error 134 (abort), that could happen from anywhere to alarm.

- - - - -


1 changed file:

- test/libvlc/test.h


Changes:

=====================================
test/libvlc/test.h
=====================================
@@ -63,12 +63,6 @@ static const char test_default_sample[] = "mock://";
 
 #define test_log( ... ) printf( "testapi: " __VA_ARGS__ );
 
-static inline void on_timeout(int signum)
-{
-    assert(signum == SIGALRM);
-    abort(); /* Cause a core dump */
-}
-
 static inline void test_init (void)
 {
     (void)test_default_sample; /* This one may not be used */
@@ -88,13 +82,7 @@ static inline void test_init (void)
             alarm_timeout = val;
     }
     if (alarm_timeout != 0)
-    {
-        struct sigaction sig = {
-            .sa_handler = on_timeout,
-        };
-        sigaction(SIGALRM, &sig, NULL);
         alarm (alarm_timeout);
-    }
 
     setenv( "VLC_PLUGIN_PATH", TOP_BUILDDIR"/modules", 1 );
     setenv( "VLC_LIB_PATH", TOP_BUILDDIR, 1 );



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

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


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to