pike.git / lib / modules / testsuite.in

version» Context lines:

pike.git/lib/modules/testsuite.in:1: - dnl $Id: testsuite.in,v 1.20 2003/10/05 16:27:58 grubba Exp $ + dnl $Id: testsuite.in,v 1.21 2003/10/05 19:35:18 grubba Exp $      dnl - Array      test_equal(Array.diff(({ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }),    ({ 6, 7, 8, 9, 3, 4, 5, 1, 2, 0 })),    ({ ({ ({ 0, 1, 2, 3, 4, 5 }),    ({ 6, 7, 8, 9 }), ({}) }),    ({ ({}), ({ 6, 7, 8, 9 }),    ({ 3, 4, 5, 1, 2, 0 }) }) }))   test_equal(Array.diff(({ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }),
pike.git/lib/modules/testsuite.in:799:   ]], ({}))   ]])      cond([[ file_stat("/bin/cat") && __builtin->TraceProcess && (cpp("__NT__")/"\n")[1]=="__NT__" ]],   [[   test_any([[    // Check that tracing works...    // Spawn a /bin/cat 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(); -  Stdio.File input_fd2 = fd->pipe(Stdio.PROP_IPC); +     Process.TraceProcess proc =    Process.TraceProcess(({ "/bin/cat" }), ([ -  "stdin":input_fd, +  "stdin":input_fd->pipe(Stdio.PROP_IPC|Stdio.PROP_REVERSE),    ]));       int initial_sleep = 5;    int count;    int state;    int code;    while (((code = proc->wait()) == -2) && (count++ < 20)) {    int sig = proc->last_signal();    switch(sig) {    case signum("TRAP"):