From 1222f22bd878a888f4c511000efa86855ded1576 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Tue, 23 Jun 2015 15:02:25 +0000 Subject: [PATCH] Use abort in parloops-exit-first-loop-alt-{3,4}.c 2015-06-23 Tom de Vries * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use abort. * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same. From-SVN: r224849 --- libgomp/ChangeLog | 6 ++++++ .../testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c | 9 ++++++++- .../testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c | 6 +++++- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index cf1a0b0d5a4..34b3396be09 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,9 @@ +2015-06-23 Tom de Vries + + * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use + abort. + * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same. + 2015-06-19 Thomas Schwinge * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for diff --git a/libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c b/libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c index 43b9194d2b1..cb5bf9cb8c5 100644 --- a/libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c +++ b/libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c @@ -3,6 +3,8 @@ /* Variable bound, reduction. */ +#include + #define N 4000 unsigned int *a; @@ -25,9 +27,14 @@ main (void) unsigned int res; unsigned int array[N]; int i; + for (i = 0; i < N; ++i) array[i] = i % 7; a = &array[0]; + res = f (N); - return !(res == 11995); + if (res != 11995) + abort (); + + return 0; } diff --git a/libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c b/libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c index 8599a89a2f0..ac420fa3662 100644 --- a/libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c +++ b/libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c @@ -3,6 +3,8 @@ /* Constant bound, reduction. */ +#include + #define N 4000 unsigned int *a; @@ -29,5 +31,7 @@ main (void) array[i] = i % 7; a = &array[0]; res = f (); - return !(res == 11995); + if (res != 11995) + abort (); + return 0; } -- 2.30.2