pike.git / lib / modules / testsuite.in

version» Context lines:

pike.git/lib/modules/testsuite.in:1414:       array(Thread.Thread) t = (({Thread.thread_create}) * 5) (thread_fn);       sleep (0.5); // Make sure they are waiting for the lock.    destruct (m);    l = 0;    sleep (0.5); // Wait for them to finish.       return num_ok;    ]], 5) -  -  test_any([[ -  #pike 7.4 -  int num_ok = 0; -  -  Thread.Mutex m = Thread.Mutex(); -  Thread.MutexKey l = m->lock(); -  -  void thread_fn() -  { -  m->lock(); -  num_ok++; -  }; -  -  array(Thread.Thread) t = (({Thread.thread_create}) * 5) (thread_fn); -  -  sleep (0.5); // Make sure they are waiting for the lock. -  destruct (m); // Destructs the outstanding lock too. -  sleep (0.5); // Wait for them to finish. -  -  return num_ok; -  ]], 5) +    ]])      dnl - This test is disabled for now.   cond([[ 0 && __builtin->TraceProcess && (cpp("__NT__")/"\n")[1]=="__NT__" ]],   [[   test_any([[    // Check that tracing works...    // Spawn a /bin/dd that hangs on a read from a pipe connected to    // this process, so that it will die of SIGPIPE if we die.    Stdio.File input_fd = Stdio.File();