On Solaris 10, the parallel testsuite harness could fail with errors
like this when /usr/bin/nawk was the selected awk program.
nawk: next is illegal inside a function at source line 1 in \
function input_error; context is:
function input_error(file) { ... close_current(); next; >>> } <<<
* lib/am/parallel-tests.am (am__create_global_log): In the awk script
defined by this function, avoid use of the 'next' directive inside a
function.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
{ \
error("awk" ": cannot read \"" file "\""); \
close_current(); \
- next; \
} \
function rst_section(header) \
{ \
while ((rc = (getline line < ($$0 ".trs"))) != 0) \
{ \
if (rc < 0) \
- input_error($$0 ".trs"); \
+ { \
+ input_error($$0 ".trs"); \
+ next; \
+ } \
if (line ~ /$(am__global_test_result_rx)/) \
{ \
sub("$(am__global_test_result_rx)", "", line); \
while ((rc = (getline line < ($$0 ".log"))) != 0) \
{ \
if (rc < 0) \
- input_error($$0 ".log"); \
+ { \
+ input_error($$0 ".log"); \
+ next; \
+ } \
print line; \
}; \
printf "\n"; \