add random ports for all make check scripts, unique ready file

This commit is contained in:
toddouska
2015-12-22 14:35:34 -08:00
parent 37b8e60537
commit 22385f2b39
6 changed files with 116 additions and 84 deletions

View File

@@ -333,28 +333,6 @@ void join_thread(THREAD_TYPE thread)
}
void InitTcpReady(tcp_ready* ready)
{
ready->ready = 0;
ready->port = 0;
#if defined(_POSIX_THREADS) && !defined(__MINGW32__)
pthread_mutex_init(&ready->mutex, 0);
pthread_cond_init(&ready->cond, 0);
#endif
}
void FreeTcpReady(tcp_ready* ready)
{
#if defined(_POSIX_THREADS) && !defined(__MINGW32__)
pthread_mutex_destroy(&ready->mutex);
pthread_cond_destroy(&ready->cond);
#else
(void)ready;
#endif
}
void file_test(const char* file, byte* check)
{
FILE* f;