On my system, NuProcess acts as if the execution of a nonexistant executable is always successful. I run Linux 4.6.2-1 and glibc 2.24-2. Attached below is the log of mvn install which shows tests breaking.
Cheers
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building NuProcess 1.1.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ nuprocess ---
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ nuprocess ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/haveo/coding/NuProcess/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ nuprocess ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) @ nuprocess ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/haveo/coding/NuProcess/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ nuprocess ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ nuprocess ---
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.zaxxer.nuprocess.FastExitingProcessTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.172 sec - in com.zaxxer.nuprocess.FastExitingProcessTest
Running com.zaxxer.nuprocess.InterruptTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.389 sec - in com.zaxxer.nuprocess.InterruptTest
Running com.zaxxer.nuprocess.EnvironmentTest
Started Java Process
Waited for Java Process
env: [PWD=/home/haveo/coding/NuProcess, _=/usr/lib/jvm/java-8-openjdk/jre/bin/java, PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/heroku/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl, JAVA_HOME=/usr/lib/jvm/java-8-openjdk, SHLVL=1, MAVEN_CMD_LINE_ARGS= install, MAVEN_PROJECTBASEDIR=/home/haveo/coding/NuProcess, OLDPWD=/home/haveo/coding/NuProcess, NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat, XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt]
Started Nu Process
Waited for Nu Process
env: [PWD=/home/haveo/coding/NuProcess, _=/usr/lib/jvm/java-8-openjdk/jre/bin/java, JAVA_HOME=/usr/lib/jvm/java-8-openjdk, PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/heroku/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl, SHLVL=1, MAVEN_CMD_LINE_ARGS= install, MAVEN_PROJECTBASEDIR=/home/haveo/coding/NuProcess, OLDPWD=/home/haveo/coding/NuProcess, NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat, XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt]
Started Java Process
Waited for Java Process
env: []
Started Nu Process
Waited for Nu Process
env: []
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.113 sec - in com.zaxxer.nuprocess.EnvironmentTest
Running com.zaxxer.nuprocess.CatTest
Tests run: 9, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.703 sec <<< FAILURE! - in com.zaxxer.nuprocess.CatTest
noExecutableFound(com.zaxxer.nuprocess.CatTest) Time elapsed: 0.005 sec <<< FAILURE!
java.lang.AssertionError: Output did not matched expected result expected:<-2147483648> but was:<0>
at com.zaxxer.nuprocess.CatTest.noExecutableFound(CatTest.java:200)
Running com.zaxxer.nuprocess.ThreadedTest
2 Maximum memory used: 60964264
2 Total execution time (ms): 5766
3 Maximum memory used: 60800512
3 Total execution time (ms): 5766
0 Maximum memory used: 60964264
0 Total execution time (ms): 5769
1 Maximum memory used: 60964328
1 Total execution time (ms): 5769
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.76 sec - in com.zaxxer.nuprocess.ThreadedTest
Running com.zaxxer.nuprocess.DirectWriteTest
Writing: This is a test
Read: This is a test
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.018 sec - in com.zaxxer.nuprocess.DirectWriteTest
Results :
Failed tests:
CatTest.noExecutableFound:200 Output did not matched expected result expected:<-2147483648> but was:<0>
Tests run: 19, Failures: 1, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.796 s
[INFO] Finished at: 2016-10-18T17:38:02+02:00
[INFO] Final Memory: 15M/212M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project nuprocess: There are test failures.
[ERROR]
[ERROR] Please refer to /home/haveo/coding/NuProcess/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Hello,
On my system, NuProcess acts as if the execution of a nonexistant executable is always successful. I run Linux 4.6.2-1 and glibc 2.24-2. Attached below is the log of
mvn install
which shows tests breaking.Cheers