diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-05-17 21:08:52 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-05-17 21:08:52 +0000 |
commit | 373107699709f6fb06992bf6b76274091570aaf2 (patch) | |
tree | 9ebd9bcac287767334e2623bcc0514667c76a1da /openmp/runtime/test/api | |
parent | 6323ddf99c677c560db4402f190f2bd2156e3cca (diff) | |
download | bcm5719-llvm-373107699709f6fb06992bf6b76274091570aaf2.tar.gz bcm5719-llvm-373107699709f6fb06992bf6b76274091570aaf2.zip |
Remove trailing whitespace from tests
llvm-svn: 269841
Diffstat (limited to 'openmp/runtime/test/api')
-rw-r--r-- | openmp/runtime/test/api/omp_get_num_threads.c | 4 | ||||
-rw-r--r-- | openmp/runtime/test/api/omp_get_wtime.c | 4 | ||||
-rw-r--r-- | openmp/runtime/test/api/omp_in_parallel.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/openmp/runtime/test/api/omp_get_num_threads.c b/openmp/runtime/test/api/omp_get_num_threads.c index 38a1434a031..daf286d1313 100644 --- a/openmp/runtime/test/api/omp_get_num_threads.c +++ b/openmp/runtime/test/api/omp_get_num_threads.c @@ -11,14 +11,14 @@ int test_omp_get_num_threads() nthreads_lib = -1; - #pragma omp parallel + #pragma omp parallel { #pragma omp critical { nthreads++; } /* end of critical */ #pragma omp single - { + { nthreads_lib = omp_get_num_threads (); } /* end of single */ } /* end of parallel */ diff --git a/openmp/runtime/test/api/omp_get_wtime.c b/openmp/runtime/test/api/omp_get_wtime.c index 51dcd4a3eeb..b309440db01 100644 --- a/openmp/runtime/test/api/omp_get_wtime.c +++ b/openmp/runtime/test/api/omp_get_wtime.c @@ -9,11 +9,11 @@ int test_omp_get_wtime() double start; double end; double measured_time; - double wait_time = 5.0; + double wait_time = 5.0; start = 0; end = 0; start = omp_get_wtime(); - my_sleep (wait_time); + my_sleep (wait_time); end = omp_get_wtime(); measured_time = end-start; return ((measured_time > 0.97 * wait_time) && (measured_time < 1.03 * wait_time)) ; diff --git a/openmp/runtime/test/api/omp_in_parallel.c b/openmp/runtime/test/api/omp_in_parallel.c index 40cc3859c50..d09313eab15 100644 --- a/openmp/runtime/test/api/omp_in_parallel.c +++ b/openmp/runtime/test/api/omp_in_parallel.c @@ -4,7 +4,7 @@ /* * Checks that false is returned when called from serial region - * and true is returned when called within parallel region. + * and true is returned when called within parallel region. */ int test_omp_in_parallel() { |