summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2015-08-19 10:28:14 -0700
committerJan Kotas <jkotas@microsoft.com>2015-08-19 10:28:14 -0700
commit4f0754ec17c9ba38a79498158b8687a11a9412a3 (patch)
tree0cc77e7ff4672666a848579783262ad39582fa1a
parent50ef79d48df81635e58ca59386620f0151df6022 (diff)
downloadcoreclr-4f0754ec17c9ba38a79498158b8687a11a9412a3.tar.gz
coreclr-4f0754ec17c9ba38a79498158b8687a11a9412a3.tar.bz2
coreclr-4f0754ec17c9ba38a79498158b8687a11a9412a3.zip
Fix timing in more PAL tests for FreeBSD on hypervisors
-rw-r--r--src/pal/tests/palsuite/threading/Sleep/test1/Sleep.c8
-rw-r--r--src/pal/tests/palsuite/threading/Sleep/test2/sleep.c6
-rw-r--r--src/pal/tests/palsuite/threading/SleepEx/test1/test1.c10
3 files changed, 9 insertions, 15 deletions
diff --git a/src/pal/tests/palsuite/threading/Sleep/test1/Sleep.c b/src/pal/tests/palsuite/threading/Sleep/test1/Sleep.c
index 08d4a81dfb..26c374eb89 100644
--- a/src/pal/tests/palsuite/threading/Sleep/test1/Sleep.c
+++ b/src/pal/tests/palsuite/threading/Sleep/test1/Sleep.c
@@ -26,13 +26,11 @@ DWORD SleepTimes[] =
50,
100,
500,
- 1000
+ 2000
};
-/* Milliseconds of error which are acceptable Function execution time, etc.
- FreeBSD has a "standard" resolution of 10ms for waiting operations, so we
- must take that into account as well */
-DWORD AcceptableTimeError = 15;
+/* Milliseconds of error which are acceptable Function execution time, etc. */
+DWORD AcceptableTimeError = 150;
int __cdecl main( int argc, char **argv )
{
diff --git a/src/pal/tests/palsuite/threading/Sleep/test2/sleep.c b/src/pal/tests/palsuite/threading/Sleep/test2/sleep.c
index 387b627a79..8d6c19a791 100644
--- a/src/pal/tests/palsuite/threading/Sleep/test2/sleep.c
+++ b/src/pal/tests/palsuite/threading/Sleep/test2/sleep.c
@@ -30,10 +30,8 @@ DWORD SleepTimes[] =
3200000
};
-/* Milliseconds of error which are acceptable Function execution time, etc.
- FreeBSD has a "standard" resolution of 10ms for waiting operations, so we
- must take that into account as well */
-DWORD AcceptableTimeError = 150;
+/* Milliseconds of error which are acceptable Function execution time, etc. */
+DWORD AcceptableTimeError = 150;
int __cdecl main( int argc, char **argv )
{
diff --git a/src/pal/tests/palsuite/threading/SleepEx/test1/test1.c b/src/pal/tests/palsuite/threading/SleepEx/test1/test1.c
index 2dad00dc05..2aee9c0750 100644
--- a/src/pal/tests/palsuite/threading/SleepEx/test1/test1.c
+++ b/src/pal/tests/palsuite/threading/SleepEx/test1/test1.c
@@ -27,19 +27,17 @@ testCase testCases[] =
{50, FALSE},
{100, FALSE},
{500, FALSE},
- {1000, FALSE},
+ {2000, FALSE},
{0, TRUE},
{50, TRUE},
{100, TRUE},
{500, TRUE},
- {1000, TRUE},
+ {2000, TRUE},
};
-/* Milliseconds of error which are acceptable Function execution time, etc.
- FreeBSD has a "standard" resolution of 10ms for waiting operations, so we
- must take that into account as well */
-DWORD AcceptableTimeError = 15;
+/* Milliseconds of error which are acceptable Function execution time, etc. */
+DWORD AcceptableTimeError = 150;
int __cdecl main( int argc, char **argv )
{