Browse Source

* Check if compilation has failed

git-svn-id: trunk@16892 -
joost 14 years ago
parent
commit
f05ccc13b5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/fpmkunit/src/fpmkunit.pp

+ 2 - 0
packages/fpmkunit/src/fpmkunit.pp

@@ -1222,6 +1222,7 @@ var
   end;
 
 begin
+  result := -1;
   try
     M := TMemoryStream.Create;
     BytesRead := 0;
@@ -1242,6 +1243,7 @@ begin
     // read last part
     repeat
     until ReadFromStream = 0;
+    result := P.ExitStatus;
   finally
     P.Free;
     M.Free;