Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#247 Unit tests broken

Platform_Specific
closed
nobody
5
2012-09-14
2009-04-06
Rafael Souza
No

I'm running poco branch 1.3.4 with 'g++ (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3)' under WMWare Player:

!!!FAILURES!!!
Runs: 535 Failures: 2 Errors: 8

There were 8 errors:
1: N7CppUnit10TestCallerI8CoreTestEE.testEnvironment
"N4Poco15SystemExceptionE: System exception"
in "<unknown>", line -1
2: N7CppUnit10TestCallerI17SharedLibraryTestEE.testSharedLibrary1
"N4Poco20LibraryLoadExceptionE: Cannot load library"
in "<unknown>", line -1
3: N7CppUnit10TestCallerI17SharedLibraryTestEE.testSharedLibrary2
"N4Poco20LibraryLoadExceptionE: Cannot load library"
in "<unknown>", line -1
4: N7CppUnit10TestCallerI17SharedLibraryTestEE.testSharedLibrary3
"N4Poco20LibraryLoadExceptionE: Cannot load library"
in "<unknown>", line -1
5: N7CppUnit10TestCallerI15ClassLoaderTestEE.testClassLoader2
"N4Poco20LibraryLoadExceptionE: Cannot load library"
in "<unknown>", line -1
6: N7CppUnit10TestCallerI15ClassLoaderTestEE.testClassLoader3
"N4Poco20LibraryLoadExceptionE: Cannot load library"
in "<unknown>", line -1
7: N7CppUnit10TestCallerI17UUIDGeneratorTestEE.testTimeBased
"N4Poco15SystemExceptionE: System exception"
in "<unknown>", line -1
8: N7CppUnit10TestCallerI11ProcessTestEE.testLaunchRedirectIn
"N4Poco18WriteFileExceptionE: Cannot write file"
in "<unknown>", line -1

There were 2 failures:
1: N7CppUnit10TestCallerI11ProcessTestEE.testLaunch
"rc == 3"
in "src/ProcessTest.cpp", line 79
2: N7CppUnit10TestCallerI11ProcessTestEE.testLaunchRedirectOut
"s == "Hello, world!""
in "src/ProcessTest.cpp", line 133

Discussion

  • Make sure that the Foundation/testsuite/bin/Linux/i686/ directory is in your $PATH and $LD_LIBRARY_PATH before you run the testrunner.

     
  • Rafael Souza
    Rafael Souza
    2009-04-06

    Yeah, It was missing that in my path, but I still got a couple errors:

    !!!FAILURES!!!
    Runs: 535 Failures: 0 Errors: 2

    There were 2 errors:
    1: N7CppUnit10TestCallerI8CoreTestEE.testEnvironment
    "N4Poco15SystemExceptionE: System exception"
    in "<unknown>", line -1
    2: N7CppUnit10TestCallerI17UUIDGeneratorTestEE.testTimeBased
    "N4Poco15SystemExceptionE: System exception"
    in "<unknown>", line -1


    And I got some errors at Net Library:

    testList: DialogServer: Connection reset by peer
    testRetrieveMessage: DialogServer: Connection reset by peer
    testPing: ERROR

    !!!FAILURES!!!
    Runs: 179 Failures: 0 Errors: 3

    There were 3 errors:
    1: N7CppUnit10TestCallerI13RawSocketTestEE.testEchoIPv4
    "N4Poco11IOExceptionE: I/O error"
    in "<unknown>", line -1
    2: N7CppUnit10TestCallerI13RawSocketTestEE.testSendToReceiveFromIPv4
    "N4Poco11IOExceptionE: I/O error"
    in "<unknown>", line -1
    3: N7CppUnit10TestCallerI14ICMPClientTestEE.testPing
    "N4Poco11IOExceptionE: I/O error"
    in "<unknown>", line -1

     
  • Alex Fabijanic
    Alex Fabijanic
    2009-04-07

    And I got some errors at Net Library:

    You need to run it as root.