using to enqueue all the jobs wasn't enough time on a slow/overloaded
system. Instead use a global to indicate when all the work has
been enqueued, let's see if this makes the CIs work more reliably.
llvm-svn: 281418
mydir = TestBase.compute_mydir(__file__)
@skipUnlessDarwin
- @expectedFailureAll(bugnumber="rdar://28237450")
@add_test_categories(['pyapi'])
def test_with_python_api(self):
"""Test queues inspection SB APIs."""
#include <dispatch/dispatch.h>
#include <pthread.h>
+int finished_enqueueing_work = 0;
+
void
doing_the_work_1(void *in)
{
dispatch_async_f (*work_performer_2, NULL, doing_the_work_2);
dispatch_async_f (*work_performer_2, NULL, doing_the_work_2);
}
+ finished_enqueueing_work = 1;
}
sleep (1);
}
+
int main ()
{
dispatch_queue_t work_submittor_1 = dispatch_queue_create ("com.apple.work_submittor_1", DISPATCH_QUEUE_SERIAL);
});
- sleep (1);
+ while (finished_enqueueing_work == 0)
+ sleep (1);
stopper ();
}
-