Branch: Tag:

2019-01-16

2019-01-16 12:10:09 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Testsuite: Adjusted #line directives.

Avoid confusing the testsuite linenumber consistency
tests by keeping the linenumbers invariant with respect
to the presence ot the #line directives.

Also use Pike 8.0-compatible syntax.

Fixes testsuite failures in Pike 8.0.

995:    // cf [LysLysKOM 22997909].    int whee(string w)    { - #line 7 "whee-before" + #line 8 "whee-before"    int x = 0;    error("whee!\n"); - #line 10 "whee-after" + #line 11 "whee-after"    string q = "wq";    q += "21";    return sizeof(q + w); -  } - #line 15 "test" +  }; + #line 16 "test"    mixed err = catch { whee("foo"); };    return ({ err[1][-1][0], err[1][-1][1] });   ]], ({ "whee-before", 8 }))