示例#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();
}