dain / leveldb

Port of LevelDB to Java
Apache License 2.0
1.54k stars 429 forks source link

just run the test error.what's wrong? #67

Closed moon-fall closed 8 years ago

moon-fall commented 8 years ago

50000 rows written 100000 rows written 150000 rows written Tests run: 80, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 630.078 sec <<<FAILURE! testCantCreateDirectoryReturnMessage(org.iq80.leveldb.impl.DbImplTest) Time elapsed: 0.015 sec <<< FAILURE! org.testng.TestException: The exception was thrown with the wrong message: expected "Database directory '.foo.bar.doowop.idontexist'.*" but got "Database '\foo\bar\doowop\idontexist' exi sts and the error if exists option is enabled" at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145) at org.iq80.leveldb.impl.DbImpl.(DbImpl.java:175) at org.iq80.leveldb.impl.DbImplTest$DbStringWrapper.(DbImplTest.java:1073) at org.iq80.leveldb.impl.DbImplTest$DbStringWrapper.(DbImplTest.java:1062) at org.iq80.leveldb.impl.DbImplTest.testCantCreateDirectoryReturnMessage(DbImplTest.java:813)

Results :

Failed tests: ? Test The exception was thrown with the wrong message: expected "Database d...

Tests run: 80, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] leveldb-project .................................... SUCCESS [ 5.453 s] [INFO] leveldb-api ........................................ SUCCESS [ 1.656 s] [INFO] leveldb ............................................ FAILURE [11:10 min] [INFO] leveldb-benchmark .................................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11:20 min [INFO] Finished at: 2016-02-07T21:22:04+08:00 [INFO] Final Memory: 15M/43M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.14:test (default-test) on project leveldb: There are test failures. [ERROR] [ERROR] Please refer to F:\java\leveldb-master\leveldb\target\surefire-reports f or 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 [ERROR] [ERROR] After correcting the problems, you can resume the build with the command

[ERROR] mvn -rf :leveldb

dain commented 8 years ago

Looks like the tests don't run on windows.