summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2015-08-19 16:27:19 -0700
committerJan Kotas <jkotas@microsoft.com>2015-08-19 16:27:19 -0700
commit65173556cac6152a8ba60109bfe8af30ed37f8bc (patch)
treef4417c15ba8f4b2ae5c4eec75607c58f133e52b9 /src
parentdbb91cf03bec8abe3ba9ced4f98ad02fdf767642 (diff)
parent4f0754ec17c9ba38a79498158b8687a11a9412a3 (diff)
downloadcoreclr-65173556cac6152a8ba60109bfe8af30ed37f8bc.tar.gz
coreclr-65173556cac6152a8ba60109bfe8af30ed37f8bc.tar.bz2
coreclr-65173556cac6152a8ba60109bfe8af30ed37f8bc.zip
Merge pull request #1415 from jkotas/acceptable-time-error
Fix timing in more PAL tests for FreeBSD on hypervisors
Diffstat (limited to 'src')
-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 )
{