[
https://issues.apache.org/jira/browse/ZOOKEEPER-1850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13855167#comment-13855167
]
Germán Blanco commented on ZOOKEEPER-1850:
------------------------------------------
I think you are right, and actually this was how it was done until
ZOOKEEPER-208. See
[http://svn.apache.org/viewvc/zookeeper/branches/branch-3.4/src/c/tests/TestZookeeperInit.cc?revision=704657&view=markup]
line 212.
It was changed in order to make it thread safe, but I think the mocked
gethostbyname is thread-safe anyway. I will change it back.
> cppunit test testNonexistingHost in TestZookeeperInit is failing on Unbuntu
> ---------------------------------------------------------------------------
>
> Key: ZOOKEEPER-1850
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1850
> Project: ZooKeeper
> Issue Type: Bug
> Components: tests
> Affects Versions: 3.4.6, 3.5.0
> Environment: Linux ubuntu 3.8.0-29-generic #42~precise1-Ubuntu
> Reporter: Germán Blanco
> Assignee: Germán Blanco
> Fix For: 3.4.6, 3.5.0
>
> Attachments: ZOOKEEPER-1850.patch
>
>
> This is the error:
> TestZookeeperInit.cc:241: Assertion: assertion failed [Expression: zh==0]
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)