pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:1769:   // destruct_objects_to_destruct, and also that it keeps the destruct   // order sane.   test_do([[    class Top    {    int count = 0;       class Foo    {    int c; -  object foo; -  protected void create(object o) +  object|zero foo; +  protected void create(object|zero o)    {    foo = o;    c = count++;    }       protected void _destruct()    {    count--;    if (count != c)    error ("Destruct out of sequence, "
pike.git/src/testsuite.in:2856:   dnl Note: This line number error tend to go away with more debug.   test_program([[    int x = 0;    int y = [int] backtrace()[-1][1];    int a() {return y == 3;}   ]])      dnl This test used to get the last line of the else block   test_any([[    int expected_line; -  void foo(object o) +  void foo(object|zero o)    {    expected_line = __LINE__ + 1;    if (o->a && b) {    o->a = o->b;    } else if (o->b) {    o->b = o->a;    }    };    mixed err = catch { foo(UNDEFINED); };    return err[1][-1][1] - expected_line;