summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2015-11-16 11:35:57 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2015-11-16 11:35:57 +0000
commitffca01ce9fbeead7d2290fb31b4c0b064d0c3cd1 (patch)
treed2c90eee83295ab8238e338694c59bb733a7c5c7
parentb350196d77b4bda5e5d09e3f3fb752797552dd2e (diff)
downloadbcm5719-llvm-ffca01ce9fbeead7d2290fb31b4c0b064d0c3cd1.tar.gz
bcm5719-llvm-ffca01ce9fbeead7d2290fb31b4c0b064d0c3cd1.zip
[OPENMP] Fixed tests for gcc build.
llvm-svn: 253200
-rw-r--r--openmp/runtime/test/api/omp_get_wtime.c2
-rw-r--r--openmp/runtime/test/worksharing/for/bug_set_schedule_0.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/openmp/runtime/test/api/omp_get_wtime.c b/openmp/runtime/test/api/omp_get_wtime.c
index d91312b2f77..51dcd4a3eeb 100644
--- a/openmp/runtime/test/api/omp_get_wtime.c
+++ b/openmp/runtime/test/api/omp_get_wtime.c
@@ -9,7 +9,7 @@ int test_omp_get_wtime()
double start;
double end;
double measured_time;
- double wait_time = 1.0;
+ double wait_time = 5.0;
start = 0;
end = 0;
start = omp_get_wtime();
diff --git a/openmp/runtime/test/worksharing/for/bug_set_schedule_0.c b/openmp/runtime/test/worksharing/for/bug_set_schedule_0.c
index 2d39cddd1c4..8f464de04d8 100644
--- a/openmp/runtime/test/worksharing/for/bug_set_schedule_0.c
+++ b/openmp/runtime/test/worksharing/for/bug_set_schedule_0.c
@@ -9,13 +9,14 @@ int a = 0;
int test_set_schedule_0()
{
+ int i;
a = 0;
omp_set_schedule(omp_sched_dynamic,0);
#pragma omp parallel
{
#pragma omp for schedule(runtime)
- for(int i = 0; i < 10; i++) {
+ for(i = 0; i < 10; i++) {
#pragma omp atomic
a++;
if(a > 10)
OpenPOWER on IntegriCloud