Prechádzať zdrojové kódy

* handle exceptions when opening the exitcode.txt file as well, so that we write
a nicer message to stdout in case the file does not exist (which happens often
when we kill dosbox, due to a timeout)

git-svn-id: trunk@32679 -

nickysn 9 rokov pred
rodič
commit
52402032ae
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      tests/utils/dosbox/dosbox_wrapper.pas

+ 1 - 1
tests/utils/dosbox/dosbox_wrapper.pas

@@ -143,8 +143,8 @@ var
   F: TextFile;
 begin
   AssignFile(F, ADosBoxDir + 'EXITCODE.TXT');
-  Reset(F);
   try
+    Reset(F);
     Readln(F, Result);
     if Result <> 0 then
       Writeln('ExitCode=',Result);