On 19 October 2019 15:04:39 CEST, Bernhard Reutner-Fischer <rep.dot....@gmail.com> wrote: >On 18 October 2019 17:08:54 CEST, Chung-Lin Tang ><chunglin_t...@mentor.com> wrote: > >>Also, I've added a new libgomp.oacc-fortran/deviceptr-2.f90 testcase >>that >>actually copies out and verifies the deviceptr computation. > >In testcases please do not 'call abort' which is nonstandard but use >'stop N' which is standard, ideally with different stop integers so one >can see easily which test failed. > >We went through all of the testsuite a while ago to remove the >nonstandard abort, FYI.
Like (modulo typos, untested): $ cat abort_to_stop.awk ; echo EOF # awk -f ./abort_to_stop.awk < foo.f90 > x && mv x foo.f90 BEGIN { IGNORECASE = 1; i = 1 } { while (sub(/call\s\s*abort/, "stop " i)) {let i++;}; print $0; } EOF