Check return status from TIFFWriteScanline() correctly in test programs.