403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.236
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/devel/ice/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/devel/ice/files/patch-cpp-test-Ice-metrics-AllTests.cpp
--- cpp/test/Ice/metrics/AllTests.cpp.orig	2019-08-12 19:54:18 UTC
+++ cpp/test/Ice/metrics/AllTests.cpp
@@ -639,9 +639,12 @@ allTests(const Ice::CommunicatorPtr& communicator, con
         testAttribute(clientMetrics, clientProps, update, "Connection", "incoming", "false");
         testAttribute(clientMetrics, clientProps, update, "Connection", "adapterName", "");
         testAttribute(clientMetrics, clientProps, update, "Connection", "connectionId", "Con1");
-        testAttribute(clientMetrics, clientProps, update, "Connection", "localHost", "127.0.0.1");
+        if (!inFreeBSDJail())
+        {
+            testAttribute(clientMetrics, clientProps, update, "Connection", "localHost", "127.0.0.1");
+            testAttribute(clientMetrics, clientProps, update, "Connection", "remoteHost", "127.0.0.1");
+        }
         //testAttribute(clientMetrics, clientProps, update, "Connection", "localPort", "");
-        testAttribute(clientMetrics, clientProps, update, "Connection", "remoteHost", "127.0.0.1");
         testAttribute(clientMetrics, clientProps, update, "Connection", "remotePort", "12010");
         testAttribute(clientMetrics, clientProps, update, "Connection", "mcastHost", "");
         testAttribute(clientMetrics, clientProps, update, "Connection", "mcastPort", "");
@@ -726,7 +729,7 @@ allTests(const Ice::CommunicatorPtr& communicator, con
         bool dnsException = false;
         try
         {
-            communicator->stringToProxy("test:tcp -t 500 -p 12010 -h unknownfoo.zeroc.com")->ice_ping();
+            communicator->stringToProxy("test:tcp -t 500 -p 12010 -h unknownhost9999.example.org")->ice_ping();
             test(false);
         }
         catch(const Ice::DNSException&)
@@ -739,7 +742,7 @@ allTests(const Ice::CommunicatorPtr& communicator, con
         }
         test(clientMetrics->getMetricsView("View", timestamp)["EndpointLookup"].size() == 2);
         m1 = clientMetrics->getMetricsView("View", timestamp)["EndpointLookup"][1];
-        test(m1->id == "tcp -h unknownfoo.zeroc.com -p 12010 -t 500" && m1->total == 2 &&
+        test(m1->id == "tcp -h unknownhost9999.example.org -p 12010 -t 500" && m1->total == 2 &&
              (!dnsException || m1->failures == 2));
         if(dnsException)
         {
@@ -871,9 +874,12 @@ allTests(const Ice::CommunicatorPtr& communicator, con
         testAttribute(serverMetrics, serverProps, update, "Dispatch", "incoming", "true", op);
         testAttribute(serverMetrics, serverProps, update, "Dispatch", "adapterName", "TestAdapter", op);
         testAttribute(serverMetrics, serverProps, update, "Dispatch", "connectionId", "", op);
-        testAttribute(serverMetrics, serverProps, update, "Dispatch", "localHost", "127.0.0.1", op);
+        if (!inFreeBSDJail())
+        {
+            testAttribute(serverMetrics, serverProps, update, "Dispatch", "localHost", "127.0.0.1", op);
+            testAttribute(serverMetrics, serverProps, update, "Dispatch", "remoteHost", "127.0.0.1", op);
+        }
         testAttribute(serverMetrics, serverProps, update, "Dispatch", "localPort", "12010", op);
-        testAttribute(serverMetrics, serverProps, update, "Dispatch", "remoteHost", "127.0.0.1", op);
         //testAttribute(serverMetrics, serverProps, update, "Dispatch", "remotePort", "12010", op);
         testAttribute(serverMetrics, serverProps, update, "Dispatch", "mcastHost", "", op);
         testAttribute(serverMetrics, serverProps, update, "Dispatch", "mcastPort", "", op);

Youez - 2016 - github.com/yon3zu
LinuXploit