mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-27 13:44:16 +00:00
[Unit-test] Run tests in parallel
This commit is contained in:
1 parent
78c7dd2a37
commit
893a3cdc1f
5 files changed
+82
-39
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user