Patches for check_test program control exit status with external file [sf#1343166] [#519]