Add more armor/dearmor tests

This commit is contained in:
Paul Schaub 2023-01-13 17:03:05 +01:00
parent 670aa0f242
commit 4726362df8
3 changed files with 189 additions and 8 deletions

View file

@ -274,6 +274,7 @@ public class ExternalSOP implements SOP {
outputStream.write(buf, 0, r);
}
outputStream.flush();
outputStream.close();
ExternalSOP.finish(process);
}
@ -299,19 +300,17 @@ public class ExternalSOP implements SOP {
while ((r = standardIn.read(buf)) > 0) {
processOut.write(buf, 0, r);
}
standardIn.close();
try {
processOut.close();
} catch (IOException e) {
// ignore
}
processOut.flush();
processOut.close();
while ((r = processIn.read(buf)) > 0) {
outputStream.write(buf, 0 , r);
}
processIn.close();
outputStream.flush();
outputStream.close();
finish(process);