[Unit-test] Run tests in parallel

This commit is contained in:
Andrey Volk committed 2020-01-23 02:29:57 +04:00
1 parent 78c7dd2a37
commit 893a3cdc1f
5 files changed
+82 -39

No files matched your search

+15
View File
@@ -39,6 +39,11 @@
#include <sys/time.h>
#include <sys/resource.h>
#endif
#include <sys/types.h>
#include <unistd.h>
#else
/* process.h is required for _getpid() */
#include <process.h>
#endif
#include "private/switch_core_pvt.h"
#define ESCAPE_META '\\'
@@ -4529,6 +4534,16 @@ SWITCH_DECLARE(char *)switch_html_strip(const char *str)
return text;
}
SWITCH_DECLARE(unsigned long) switch_getpid()
{
#ifndef WIN32
pid_t pid = getpid();
#else
int pid = _getpid();
#endif
return (unsigned long)pid;
}
/* For Emacs: