···11+Disable this test because it attempts to do a DNS lookup, which fails
22+in a chroot.
33+44+--- myserver-0.10/tests/test_socket.cpp 2010-10-19 00:12:59.000000000 +0200
55++++ myserver-0.10/tests/test_socket.cpp 2010-10-19 00:13:07.000000000 +0200
66+@@ -56,7 +56,6 @@ class TestSocket : public CppUnit::TestF
77+88+ CPPUNIT_TEST (testGethostname);
99+ CPPUNIT_TEST (testRecv);
1010+- CPPUNIT_TEST (testGetLocalIPsList);
1111+1212+ CPPUNIT_TEST_SUITE_END ();
-35
pkgs/servers/http/myserver/tests-in-chroot.patch
···11-Some of the tests can't be run in a chroot:
22-33- - `test_homedir' wants to access /etc/passwd.
44- - `test_socket' would want /etc/hosts.
55-66---- myserver-0.9.2/tests/test_homedir.cpp 2010-02-14 21:04:14.000000000 +0100
77-+++ myserver-0.9.2/tests/test_homedir.cpp 2010-02-16 11:22:23.000000000 +0100
88-@@ -58,6 +58,7 @@ public:
99- * if it doesn't handle this differently. */
1010- username.assign ("root");
1111- #endif
1212-+#if 0
1313- string dir;
1414-1515- CPPUNIT_ASSERT_EQUAL (homeDir->getHomeDir (username, dir), 0);
1616-@@ -65,6 +66,7 @@ public:
1717- CPPUNIT_ASSERT (dir.length ());
1818-1919- homeDir->clear ();
2020-+#endif
2121- }
2222-2323- };
2424-2525---- myserver-0.9.2/tests/test_socket.cpp 2010-02-14 21:04:14.000000000 +0100
2626-+++ myserver-0.9.2/tests/test_socket.cpp 2010-02-16 11:31:00.000000000 +0100
2727-@@ -178,7 +178,7 @@ static DEFINE_THREAD (testRecvClient, pP
2828- {
2929- int ret;
3030- Socket *obj2 = new Socket;
3131-- char host[] = "localhost";
3232-+ char host[] = "127.0.0.1";
3333-3434- ret = obj2->socket (AF_INET, SOCK_STREAM, 0);
3535- CPPUNIT_ASSERT (ret != -1);