Uncommented test sections in selftest
This commit is contained in:
@@ -39,6 +39,7 @@
|
|||||||
#include "OneService.hpp"
|
#include "OneService.hpp"
|
||||||
#include "InetAddress.hpp"
|
#include "InetAddress.hpp"
|
||||||
#include "OSUtils.hpp"
|
#include "OSUtils.hpp"
|
||||||
|
#include "Mutex.hpp"
|
||||||
|
|
||||||
std::vector<void*> vtaps;
|
std::vector<void*> vtaps;
|
||||||
ZeroTier::Mutex _vtaps_lock;
|
ZeroTier::Mutex _vtaps_lock;
|
||||||
|
|||||||
@@ -142,13 +142,13 @@
|
|||||||
inline unsigned int gettid()
|
inline unsigned int gettid()
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
return GetCurrentThreadId();
|
return GetCurrentThreadId();
|
||||||
#elif defined(__unix__)
|
#elif defined(__unix__)
|
||||||
return static_cast<unsigned int>(::syscall(__NR_gettid));
|
return static_cast<unsigned int>(::syscall(__NR_gettid));
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
uint64_t tid64;
|
uint64_t tid64;
|
||||||
pthread_threadid_np(NULL, &tid64);
|
pthread_threadid_np(NULL, &tid64);
|
||||||
return static_cast<unsigned int>(tid64);
|
return static_cast<unsigned int>(tid64);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -381,7 +381,7 @@ void wait_until_everyone_is_ready(struct sockaddr *local_addr, struct sockaddr *
|
|||||||
struct sockaddr_in client;
|
struct sockaddr_in client;
|
||||||
socklen_t client_addrlen = sizeof(sockaddr_in);
|
socklen_t client_addrlen = sizeof(sockaddr_in);
|
||||||
if ((accepted_fd = ACCEPT(listen_fd, (struct sockaddr *)&client, &client_addrlen)) < 0) {
|
if ((accepted_fd = ACCEPT(listen_fd, (struct sockaddr *)&client, &client_addrlen)) < 0) {
|
||||||
DEBUG_TEST("errno = %d", errno);
|
//DEBUG_TEST("errno = %d", errno);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
DEBUG_TEST("connected");
|
DEBUG_TEST("connected");
|
||||||
@@ -390,11 +390,9 @@ void wait_until_everyone_is_ready(struct sockaddr *local_addr, struct sockaddr *
|
|||||||
}
|
}
|
||||||
sleep(1);
|
sleep(1);
|
||||||
}
|
}
|
||||||
DEBUG_TEST("closing");
|
|
||||||
CLOSE(listen_fd);
|
CLOSE(listen_fd);
|
||||||
CLOSE(conn_fd);
|
CLOSE(conn_fd);
|
||||||
CLOSE(accepted_fd);
|
CLOSE(accepted_fd);
|
||||||
DEBUG_TEST("returning");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -2886,7 +2884,7 @@ for (int i=0; i<num_repeats; i++)
|
|||||||
long int selftest_start_time = get_now_ts();
|
long int selftest_start_time = get_now_ts();
|
||||||
subtest_expected_duration = 20; // initial value, wait for other instance to come online
|
subtest_expected_duration = 20; // initial value, wait for other instance to come online
|
||||||
#endif
|
#endif
|
||||||
/*
|
|
||||||
// UDP 4 client/server
|
// UDP 4 client/server
|
||||||
|
|
||||||
ipv = 4;
|
ipv = 4;
|
||||||
@@ -3059,12 +3057,9 @@ for (int i=0; i<num_repeats; i++)
|
|||||||
}
|
}
|
||||||
RECORD_RESULTS(passed, details, &results);
|
RECORD_RESULTS(passed, details, &results);
|
||||||
port++;
|
port++;
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
// IPV6
|
// IPV6
|
||||||
|
|
||||||
/*
|
|
||||||
// UDP 6 client/server
|
// UDP 6 client/server
|
||||||
|
|
||||||
ipv = 6;
|
ipv = 6;
|
||||||
@@ -3172,7 +3167,7 @@ for (int i=0; i<num_repeats; i++)
|
|||||||
}
|
}
|
||||||
RECORD_RESULTS(passed, details, &results);
|
RECORD_RESULTS(passed, details, &results);
|
||||||
port++;
|
port++;
|
||||||
*/
|
|
||||||
// TCP 6 sustained transfer
|
// TCP 6 sustained transfer
|
||||||
|
|
||||||
ipv = 6;
|
ipv = 6;
|
||||||
|
|||||||
Reference in New Issue
Block a user