예제 #1
0
파일: ct.c 프로젝트: decimalbell/ct
static void
runalltest(Test *ts, int limit)
{
    int nrun = 0;
    Test *t;
    for (t=ts; t->f; t++) {
        if (nrun >= limit) {
            waittest(ts);
            nrun--;
        }
        start(t);
        nrun++;
    }
    for (; nrun; nrun--) {
        waittest(ts);
    }
}
예제 #2
0
파일: wait2test.c 프로젝트: nitayk/os142
int
main(void)
{
  waittest();
  exit();
}