You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-misc/vlock/files/vlock-2.2.2-test_process.patch

29 lines
905 B

--- a/tests/test_process.c 2008-10-16 14:10:16.000000000 +0200
+++ b/tests/test_process.c 2008-10-16 14:11:26.000000000 +0200
@@ -12,6 +12,7 @@
#include "test_process.h"
+/* Dustin Polke: This test is flaky, sometimes it passes, sometimes not... Thus exclude it
void test_wait_for_death(void)
{
pid_t pid = fork();
@@ -25,6 +26,7 @@
CU_ASSERT(!wait_for_death(pid, 0, 2000));
CU_ASSERT(wait_for_death(pid, 0, 20000));
}
+*/
void test_ensure_death(void)
{
@@ -137,7 +139,8 @@
}
CU_TestInfo process_tests[] = {
- { "test_wait_for_death", test_wait_for_death },
+/* Dustin Polke: This test is flaky, sometimes it passes, sometimes not... Thus exclude it
+ { "test_wait_for_death", test_wait_for_death }, */
{ "test_ensure_death", test_ensure_death },
{ "test_create_child_function", test_create_child_function },
{ "test_create_child_process", test_create_child_process },