summaryrefslogtreecommitdiff
path: root/chapter21/src/test/java/com/seaofnodes
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2025-04-10 17:23:04 -0700
committerCliff Click <cliffc@acm.org>2025-04-10 17:23:04 -0700
commit006c2351ce7eed1209296b8811f64f3f72f64045 (patch)
tree8fb0daea9b271d1fb094129004fbb2d869b91cf3 /chapter21/src/test/java/com/seaofnodes
parentb6765473a3ce3db943355abba8e8ff765a3f8a3b (diff)
downloadSimple-006c2351ce7eed1209296b8811f64f3f72f64045.tar.gz
Simple-006c2351ce7eed1209296b8811f64f3f72f64045.zip
better ci error
Diffstat (limited to 'chapter21/src/test/java/com/seaofnodes')
-rw-r--r--chapter21/src/test/java/com/seaofnodes/simple/TestC.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/chapter21/src/test/java/com/seaofnodes/simple/TestC.java b/chapter21/src/test/java/com/seaofnodes/simple/TestC.java
index 160569b1..2d908699 100644
--- a/chapter21/src/test/java/com/seaofnodes/simple/TestC.java
+++ b/chapter21/src/test/java/com/seaofnodes/simple/TestC.java
@@ -79,6 +79,10 @@ public abstract class TestC {
Process smp = new ProcessBuilder(bin).redirectErrorStream(true).start();
try { error = (byte)smp.waitFor(); } catch( InterruptedException e ) { throw new IOException("interrupted"); }
result = new String(smp.getInputStream().readAllBytes());
+ if( error!=0 ) {
+ System.err.println("exec error code: "+error);
+ System.err.println(result);
+ }
assertEquals( 0, error );
assertEquals(expected,result);
}