Fixed issue with c tests running too fast (overwhelming plugin)

This commit is contained in:
Chris Teubert
2017-05-02 16:51:58 -07:00
parent 10f3ce2854
commit db92652bc2
4 changed files with 90 additions and 35 deletions

View File

@@ -9,10 +9,21 @@
#include <string.h>
#include <math.h>
#ifdef LINUX
#include <unistd.h>
#endif
#ifdef WINDOWS
#include <windows.h>
#endif
#define SLEEP_AMOUNT 100000
#define feq(x, y) (fabs(x - y) < 1e-4)
#define IP "127.0.0.1"
void crossPlatformUSleep(int uSleep);
extern int testFailed;
extern int testPassed;