lukefx
9/24/2014 - 10:16 AM

jnr-posix mvn test

jnr-posix mvn test

C:\Develop\jnr-posix> mvn test

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building jnr-posix 3.0.7-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ jnr-posix ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jnr-posix ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory e:\Develop\jnr-posix\src\main\resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ jnr-posix ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jnr-posix ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory e:\Develop\jnr-posix\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ jnr-posix ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ jnr-posix ---
[INFO] Surefire report directory: e:\Develop\jnr-posix\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running jnr.posix.DTableSizeTest
Running jnr.posix.FileStatTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec - in jnr.posix.DTableSizeTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.374 sec - in jnr.posix.FileStatTest
Running jnr.posix.FileTest
Running jnr.posix.GroupTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063 sec - in jnr.posix.GroupTest
Running jnr.posix.HANDLETest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.64 sec - in jnr.posix.HANDLETest
Running jnr.posix.IDTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.312 sec - in jnr.posix.IDTest
Running jnr.posix.IOTest
Tests run: 5, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.328 sec <<< FAILURE! - in jnr.posix.IOTest
testPipe(jnr.posix.IOTest)  Time elapsed: 0.265 sec  <<< ERROR!
java.lang.UnsupportedOperationException: unimplemented method: pipe
	at jnr.posix.DummyPOSIXHandler.unimplementedError(DummyPOSIXHandler.java:29)
	at jnr.posix.CheckedPOSIX.unimplementedInt(CheckedPOSIX.java:29)
	at jnr.posix.CheckedPOSIX.pipe(CheckedPOSIX.java:435)
	at jnr.posix.LazyPOSIX.pipe(LazyPOSIX.java:431)
	at jnr.posix.IOTest.testPipe(IOTest.java:56)

testOpenReadWrite(jnr.posix.IOTest)  Time elapsed: 0 sec  <<< ERROR!
java.lang.UnsupportedOperationException: unimplemented method: open
	at jnr.posix.DummyPOSIXHandler.unimplementedError(DummyPOSIXHandler.java:29)
	at jnr.posix.CheckedPOSIX.unimplementedInt(CheckedPOSIX.java:29)
	at jnr.posix.CheckedPOSIX.open(CheckedPOSIX.java:395)
	at jnr.posix.LazyPOSIX.open(LazyPOSIX.java:391)
	at jnr.posix.IOTest.testOpenReadWrite(IOTest.java:28)

Running jnr.posix.JavaFileStatTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec - in jnr.posix.JavaFileStatTest
Running jnr.posix.JavaPOSIXTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.078 sec - in jnr.posix.JavaPOSIXTest
Running jnr.posix.PasswdTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec - in jnr.posix.PasswdTest
Running jnr.posix.ProcessTest
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.328 sec <<< FAILURE! - in jnr.posix.ProcessTest
getcwd(jnr.posix.ProcessTest)  Time elapsed: 0.281 sec  <<< ERROR!
java.lang.UnsupportedOperationException: unimplemented method: getcwd
	at jnr.posix.DummyPOSIXHandler.unimplementedError(DummyPOSIXHandler.java:29)
	at jnr.posix.CheckedPOSIX.unimplementedString(CheckedPOSIX.java:39)
	at jnr.posix.CheckedPOSIX.getcwd(CheckedPOSIX.java:455)
	at jnr.posix.LazyPOSIX.getcwd(LazyPOSIX.java:451)
	at jnr.posix.ProcessTest.getcwd(ProcessTest.java:36)

Running jnr.posix.SignalTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.375 sec <<< FAILURE! - in jnr.posix.SignalTest
testBasicSignal(jnr.posix.SignalTest)  Time elapsed: 0.312 sec  <<< ERROR!
java.lang.UnsupportedOperationException: unimplemented method: kill
	at jnr.posix.DummyPOSIXHandler.unimplementedError(DummyPOSIXHandler.java:29)
	at jnr.posix.WindowsPOSIX.kill(WindowsPOSIX.java:141)
	at jnr.posix.CheckedPOSIX.kill(CheckedPOSIX.java:208)
	at jnr.posix.LazyPOSIX.kill(LazyPOSIX.java:205)
	at jnr.posix.SignalTest.testBasicSignal(SignalTest.java:41)

testJavaSignal(jnr.posix.SignalTest)  Time elapsed: 0 sec  <<< ERROR!
java.lang.IllegalArgumentException: Unknown signal: HUP
	at sun.misc.Signal.<init>(Signal.java:143)
	at jnr.posix.JavaPOSIX.signal(JavaPOSIX.java:231)
	at jnr.posix.SignalTest.testJavaSignal(SignalTest.java:50)

Running jnr.posix.SpawnTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec - in jnr.posix.SpawnTest
Running jnr.posix.util.DefaultPOSIXHandlerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.344 sec - in jnr.posix.util.DefaultPOSIXHandlerTest
Running jnr.posix.util.PlatformTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec - in jnr.posix.util.PlatformTest
Running jnr.posix.util.WindowsHelpersTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.156 sec - in jnr.posix.util.WindowsHelpersTest
Tests run: 18, Failures: 0, Errors: 14, Skipped: 0, Time elapsed: 4.758 sec <<< FAILURE! - in jnr.posix.FileTest
dup2Test(jnr.posix.FileTest)  Time elapsed: 0.281 sec  <<< ERROR!
java.lang.UnsupportedOperationException: unimplemented method: dup2
	at jnr.posix.DummyPOSIXHandler.unimplementedError(DummyPOSIXHandler.java:29)
	at jnr.posix.CheckedPOSIX.unimplementedInt(CheckedPOSIX.java:29)
	at jnr.posix.CheckedPOSIX.dup2(CheckedPOSIX.java:371)
	at jnr.posix.LazyPOSIX.dup2(LazyPOSIX.java:367)
	at jnr.posix.FileTest.dup2Test(FileTest.java:129)

flockTest(jnr.posix.FileTest)  Time elapsed: 0.047 sec  <<< ERROR!
java.lang.UnsatisfiedLinkError: Operazione completata.

	at jnr.ffi.provider.jffi.AsmRuntime.newUnsatisifiedLinkError(AsmRuntime.java:40)
	at jnr.posix.WindowsLibC$jnr$ffi$0.flock(Unknown Source)
	at jnr.posix.BaseNativePOSIX.flock(BaseNativePOSIX.java:462)
	at jnr.posix.CheckedPOSIX.flock(CheckedPOSIX.java:363)
	at jnr.posix.LazyPOSIX.flock(LazyPOSIX.java:359)
	at jnr.posix.FileTest.flockTest(FileTest.java:93)

pwriteTest(jnr.posix.FileTest)  Time elapsed: 0.249 sec  <<< ERROR!
java.lang.UnsupportedOperationException: unimplemented method: open
	at jnr.posix.DummyPOSIXHandler.unimplementedError(DummyPOSIXHandler.java:29)
	at jnr.posix.CheckedPOSIX.unimplementedInt(CheckedPOSIX.java:29)
	at jnr.posix.CheckedPOSIX.open(CheckedPOSIX.java:395)
	at jnr.posix.LazyPOSIX.open(LazyPOSIX.java:391)
	at jnr.posix.FileTest.pwriteTest(FileTest.java:259)

futimeTest(jnr.posix.FileTest)  Time elapsed: 2.012 sec  <<< ERROR!
java.lang.UnsupportedOperationException: unimplemented method: open
	at jnr.posix.DummyPOSIXHandler.unimplementedError(DummyPOSIXHandler.java:29)
	at jnr.posix.CheckedPOSIX.unimplementedInt(CheckedPOSIX.java:29)
	at jnr.posix.CheckedPOSIX.open(CheckedPOSIX.java:395)
	at jnr.posix.LazyPOSIX.open(LazyPOSIX.java:391)
	at jnr.posix.FileTest.futimeTest(FileTest.java:44)

unlinkTest(jnr.posix.FileTest)  Time elapsed: 0 sec  <<< ERROR!
java.lang.UnsupportedOperationException: unimplemented method: unlink
	at jnr.posix.DummyPOSIXHandler.unimplementedError(DummyPOSIXHandler.java:29)
	at jnr.posix.CheckedPOSIX.unimplementedInt(CheckedPOSIX.java:29)
	at jnr.posix.CheckedPOSIX.unlink(CheckedPOSIX.java:391)
	at jnr.posix.LazyPOSIX.unlink(LazyPOSIX.java:387)
	at jnr.posix.FileTest.unlinkTest(FileTest.java:203)

writeTest(jnr.posix.FileTest)  Time elapsed: 0 sec  <<< ERROR!
java.lang.UnsupportedOperationException: unimplemented method: open
	at jnr.posix.DummyPOSIXHandler.unimplementedError(DummyPOSIXHandler.java:29)
	at jnr.posix.CheckedPOSIX.unimplementedInt(CheckedPOSIX.java:29)
	at jnr.posix.CheckedPOSIX.open(CheckedPOSIX.java:395)
	at jnr.posix.LazyPOSIX.open(LazyPOSIX.java:391)
	at jnr.posix.FileTest.writeTest(FileTest.java:239)

fcntlDupfdTest(jnr.posix.FileTest)  Time elapsed: 0 sec  <<< ERROR!
java.lang.UnsupportedOperationException: unimplemented method: fcntl
	at jnr.posix.DummyPOSIXHandler.unimplementedError(DummyPOSIXHandler.java:29)
	at jnr.posix.CheckedPOSIX.unimplementedInt(CheckedPOSIX.java:29)
	at jnr.posix.CheckedPOSIX.fcntl(CheckedPOSIX.java:379)
	at jnr.posix.LazyPOSIX.fcntl(LazyPOSIX.java:375)
	at jnr.posix.FileTest.fcntlDupfdTest(FileTest.java:148)

fcntlTest(jnr.posix.FileTest)  Time elapsed: 0 sec  <<< ERROR!
java.lang.UnsupportedOperationException: unimplemented method: pipe
	at jnr.posix.DummyPOSIXHandler.unimplementedError(DummyPOSIXHandler.java:29)
	at jnr.posix.CheckedPOSIX.unimplementedInt(CheckedPOSIX.java:29)
	at jnr.posix.CheckedPOSIX.pipe(CheckedPOSIX.java:435)
	at jnr.posix.LazyPOSIX.pipe(LazyPOSIX.java:431)
	at jnr.posix.FileTest.fcntlTest(FileTest.java:288)

openTest(jnr.posix.FileTest)  Time elapsed: 0 sec  <<< ERROR!
java.lang.UnsupportedOperationException: unimplemented method: open
	at jnr.posix.DummyPOSIXHandler.unimplementedError(DummyPOSIXHandler.java:29)
	at jnr.posix.CheckedPOSIX.unimplementedInt(CheckedPOSIX.java:29)
	at jnr.posix.CheckedPOSIX.open(CheckedPOSIX.java:395)
	at jnr.posix.LazyPOSIX.open(LazyPOSIX.java:391)
	at jnr.posix.FileTest.openTest(FileTest.java:222)

closeTest(jnr.posix.FileTest)  Time elapsed: 0 sec  <<< ERROR!
java.lang.UnsupportedOperationException: unimplemented method: close
	at jnr.posix.DummyPOSIXHandler.unimplementedError(DummyPOSIXHandler.java:29)
	at jnr.posix.CheckedPOSIX.unimplementedInt(CheckedPOSIX.java:29)
	at jnr.posix.CheckedPOSIX.close(CheckedPOSIX.java:387)
	at jnr.posix.LazyPOSIX.close(LazyPOSIX.java:383)
	at jnr.posix.FileTest.closeTest(FileTest.java:187)

fchmodTest(jnr.posix.FileTest)  Time elapsed: 0 sec  <<< ERROR!
java.lang.UnsupportedOperationException: unimplemented method: open
	at jnr.posix.DummyPOSIXHandler.unimplementedError(DummyPOSIXHandler.java:29)
	at jnr.posix.CheckedPOSIX.unimplementedInt(CheckedPOSIX.java:29)
	at jnr.posix.CheckedPOSIX.open(CheckedPOSIX.java:395)
	at jnr.posix.LazyPOSIX.open(LazyPOSIX.java:391)
	at jnr.posix.FileTest.fchmodTest(FileTest.java:298)

ftruncateTest(jnr.posix.FileTest)  Time elapsed: 0.032 sec  <<< ERROR!
java.lang.UnsupportedOperationException: unimplemented method: open
	at jnr.posix.DummyPOSIXHandler.unimplementedError(DummyPOSIXHandler.java:29)
	at jnr.posix.CheckedPOSIX.unimplementedInt(CheckedPOSIX.java:29)
	at jnr.posix.CheckedPOSIX.open(CheckedPOSIX.java:395)
	at jnr.posix.LazyPOSIX.open(LazyPOSIX.java:391)
	at jnr.posix.FileTest.ftruncateTest(FileTest.java:276)

fcntlDupfdWithArgTest(jnr.posix.FileTest)  Time elapsed: 0.016 sec  <<< ERROR!
java.lang.UnsupportedOperationException: unimplemented method: fcntl
	at jnr.posix.DummyPOSIXHandler.unimplementedError(DummyPOSIXHandler.java:29)
	at jnr.posix.CheckedPOSIX.unimplementedInt(CheckedPOSIX.java:29)
	at jnr.posix.CheckedPOSIX.fcntl(CheckedPOSIX.java:379)
	at jnr.posix.LazyPOSIX.fcntl(LazyPOSIX.java:379)
	at jnr.posix.FileTest.fcntlDupfdWithArgTest(FileTest.java:169)

dupTest(jnr.posix.FileTest)  Time elapsed: 0 sec  <<< ERROR!
java.lang.UnsupportedOperationException: unimplemented method: dup
	at jnr.posix.DummyPOSIXHandler.unimplementedError(DummyPOSIXHandler.java:29)
	at jnr.posix.CheckedPOSIX.unimplementedInt(CheckedPOSIX.java:29)
	at jnr.posix.CheckedPOSIX.dup(CheckedPOSIX.java:367)
	at jnr.posix.LazyPOSIX.dup(LazyPOSIX.java:363)
	at jnr.posix.FileTest.dupTest(FileTest.java:109)


Results :

Tests in error: 
  FileTest.dup2Test:129 » UnsupportedOperation unimplemented method: dup2
  FileTest.flockTest:93 » UnsatisfiedLink Operazione completata.

  FileTest.pwriteTest:259 » UnsupportedOperation unimplemented method: open
  IOTest.testPipe:56 » UnsupportedOperation unimplemented method: pipe
  IOTest.testOpenReadWrite:28 » UnsupportedOperation unimplemented method: open
  FileTest.futimeTest:44 » UnsupportedOperation unimplemented method: open
  FileTest.unlinkTest:203 » UnsupportedOperation unimplemented method: unlink
  FileTest.writeTest:239 » UnsupportedOperation unimplemented method: open
  FileTest.fcntlDupfdTest:148 » UnsupportedOperation unimplemented method: fcntl
  FileTest.fcntlTest:288 » UnsupportedOperation unimplemented method: pipe
  FileTest.openTest:222 » UnsupportedOperation unimplemented method: open
  FileTest.closeTest:187 » UnsupportedOperation unimplemented method: close
  FileTest.fchmodTest:298 » UnsupportedOperation unimplemented method: open
  FileTest.ftruncateTest:276 » UnsupportedOperation unimplemented method: open
  ProcessTest.getcwd:36 » UnsupportedOperation unimplemented method: getcwd
  SignalTest.testBasicSignal:41 » UnsupportedOperation unimplemented method: kil...
  SignalTest.testJavaSignal:50 » IllegalArgument Unknown signal: HUP
  FileTest.fcntlDupfdWithArgTest:169 » UnsupportedOperation unimplemented method...
  FileTest.dupTest:109 » UnsupportedOperation unimplemented method: dup

Tests run: 58, Failures: 0, Errors: 19, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.380 s
[INFO] Finished at: 2014-09-24T11:47:02+02:00
[INFO] Final Memory: 6M/16M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project jnr-posix: There are test failures.
[ERROR] 
[ERROR] Please refer to e:\Develop\jnr-posix\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