static void * TestSuite_ParallelWorker (void *data) /* IN */ { ParallelInfo *info = data; ASSERT (info); TestSuite_RunTest (info->suite, info->test, info->mutex, info->count); if (AtomicInt_DecrementAndTest (info->count)) { TestSuite_PrintJsonFooter (); exit (0); } return NULL; }
static void * TestSuite_ParallelWorker (void *data) /* IN */ { ParallelInfo *info = data; ASSERT (info); TestSuite_RunTest (info->suite, info->test, info->mutex, info->count); if (AtomicInt_DecrementAndTest (info->count)) { TestSuite_PrintJsonFooter (stdout); if (info->suite->outfile && !info->suite->generatexmlreport) { TestSuite_PrintJsonFooter (info->suite->outfile); } exit (0); } return NULL; }
static void * TestSuite_ParallelWorker (void *data) /* IN */ { ParallelInfo *info = (ParallelInfo *)data; int status; ASSERT (info); status = TestSuite_RunTest (info->suite, info->test, info->mutex, info->count); if (AtomicInt_DecrementAndTest (info->count)) { TestSuite_PrintJsonFooter (stdout); if (info->suite->outfile) { TestSuite_PrintJsonFooter (info->suite->outfile); } exit (status); } return NULL; }