Home Bug Reports

c++ make test fails in IceGrid admin test on Ubuntu 10.04

bd_at_eclipsebd_at_eclipse Member Brian DavisOrganization: Eclipse Options (US) Inc.Project: Electronic Options Trading
Running "make test" in the cpp directory produces the following output for the IceGrid admin test (NOTE: listed as test 1/1 because I commented out all the other tests in cpp/allTests.py while investigating the problem):
*** running tests 1/1 in /home/bd/install/Ice-3.4.1/cpp/test/IceGrid/admin
*** configuration: Default
*** test started: 01/26/11 14:30:21
starting icegrid registry... ok
starting icegrid replica-1... ok
starting icegrid node... ok
starting glacier2... ok
testing login with username/password... ok
testing commands...
Traceback (most recent call last):
File "/home/bd/install/Ice-3.4.1/cpp/test/IceGrid/admin/run.py", line 140, in <module>
admin.expect('^active \(.*\)')
File "/home/bd/install/Ice-3.4.1/scripts/Expect.py", line 373, in expect
raise e
scripts.Expect.TIMEOUT: timeout exceeded in match
pattern: "^active \\(.*\\)"
buffer: "server state server
active (pid = 2007, enabled)
>>> "

('test in /home/bd/install/Ice-3.4.1/cpp/test/IceGrid/admin failed with exit status', 256)
However, if I modify line 140 of cpp/test/IceGrid/admin/run.py from
admin.expect('^active \(.*\)')
to remove the '^' character matching the beginning of line:
admin.expect('active \(.*\)')
then the test passes:
*** running tests 1/1 in /home/bd/install/Ice-3.4.1/cpp/test/IceGrid/admin
*** configuration: Default
*** test started: 01/26/11 14:30:58
starting icegrid registry... ok
starting icegrid replica-1... ok
starting icegrid node... ok
starting glacier2... ok
testing login with username/password... ok
testing commands... ok
stopping glacier2... ok
shutting down icegrid replica-1... ok
shutting down icegrid registry... ok
This is a fairly recent install of Ubuntu 10.04, and I built and installed both Berkeley DB and mcpp from source but all other dependencies are from the repositories.

Ice version is 3.4.1

uname -a produces:
Linux bd-desktop 2.6.32-27-generic #49-Ubuntu SMP Thu Dec 2 00:51:09 UTC 2010 x86_64 GNU/Linux

Python version is 2.6.5

gcc version is "gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3"

Comments

  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Brian,

    Welcome to our forums, and thank you for the bug report + fix.

    This test naturally works unmodified on all our supported platforms, in particular SuSE Linux and Red Hat Linux. It's unclear what is different with Ubuntu/Debian, but fortunately your fix/work-around is straightforward.

    Best regards,
    Bernard
Sign In or Register to comment.