Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test ipv6 failing on windows #2622

Closed
mattab opened this issue Aug 11, 2011 · 12 comments
Closed

Unit test ipv6 failing on windows #2622

mattab opened this issue Aug 11, 2011 · 12 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Aug 11, 2011

I have the following unit test failure on local windows box,

Fail: D:\piwik\svn\trunk/tests/core/IP.test.php -> Test_Piwik_IP -> test_getHostByAddr -> ::1 -> ip6-localhost at line 582

Infos:
Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.2 mod_perl/2.0.4 Perl/v5.10.1
PHP Version 5.3.6

Any idea?

@robocoder
Copy link
Contributor

What do you get for:

<?= php_uname('n');

@mattab
Copy link
Member Author

mattab commented Aug 11, 2011

I get: string 'MYLAPTOP' (length=8)

@robocoder
Copy link
Contributor

(In [5093]) refs #2622

@mattab
Copy link
Member Author

mattab commented Aug 16, 2011

After svn up, still failing with:

Fail: Test_Piwik_IP -> test_getHostByAddr -> ::1 -> ip6-localhost at line 582

@robocoder
Copy link
Contributor

What do you get for Piwik_IP::getHostByAddr('::1') ?

Alternately, we could simply disable this test on Windows.

@mattab
Copy link
Member Author

mattab commented Aug 21, 2011

I get an empty string for Piwik_IP::getHostByAddr('::1')

Is it OK to disable the test you think?

@robocoder
Copy link
Contributor

(In [5119]) fixes #2622

@robocoder
Copy link
Contributor

(In [5120]) refs #2622 - strtolower converts it to an empty string

@mattab
Copy link
Member Author

mattab commented Sep 5, 2011

Sorry it is still failing on my config:
Fail: Test_Piwik_IP -> test_getHostByAddr -> ::1 -> ip6-localhost at line 582

@robocoder
Copy link
Contributor

(In [5126]) fixes #2622

@anonymous-matomo-user
Copy link

In 97de0ab: Build was failing again. Result of getHostByAddr
depends on /etc/hosts. On most systems ::1 will resolve
to ipv6-localhost, but for Travis it resolves to localhost.

refs #2622

@halfdan
Copy link
Member

halfdan commented Feb 8, 2013

The following lines are desirable for IPv6 capable hosts

::1 localhost ip6-localhost ip6-loopback

@mattab mattab added this to the 1.6 Piwik 1.6 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

4 participants