csci4061/p2-code/filter-semopen-bug.awk
Michael Zhang 041f660ccd
f
2018-01-29 17:28:37 -06:00

17 lines
211 B
Awk
Executable file

#!/usr/bin/awk -f
/: sem_open /{
sem_err=1
}
/ERROR SUMMARY/{
if(sem_err==1){
nerrors=$4
ncontexts=$7
$4 = nerrors-1
$7 = ncontexts-1
print "NOTE: FILTERED sem_open BUG"
}
}
{print}