From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1534) id 8CE70385740B; Sat, 16 Oct 2021 15:51:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8CE70385740B Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Tobias Burnus To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/omp/gcc-11] openmp: Improve testsuite/libgomp.c/affinity-1.c testcase X-Act-Checkin: gcc X-Git-Author: Jakub Jelinek X-Git-Refname: refs/heads/devel/omp/gcc-11 X-Git-Oldrev: 4429405a68d0063191efaacc4d14fce5088d60f3 X-Git-Newrev: 58cde8b7915d8c2c641c299cdab9d1002e7448f4 Message-Id: <20211016155131.8CE70385740B@sourceware.org> Date: Sat, 16 Oct 2021 15:51:31 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Oct 2021 15:51:31 -0000 https://gcc.gnu.org/g:58cde8b7915d8c2c641c299cdab9d1002e7448f4 commit 58cde8b7915d8c2c641c299cdab9d1002e7448f4 Author: Jakub Jelinek Date: Fri Oct 15 23:39:27 2021 +0200 openmp: Improve testsuite/libgomp.c/affinity-1.c testcase I've noticed that while I have added hopefully sufficient test coverage for the case where one uses simple number or !number as p-interval, I haven't added any coverage for number:len:stride or number:len. This patch adds that. 2021-10-15 Jakub Jelinek * testsuite/libgomp.c/affinity-1.c (struct places): Change name field type from char [50] to const char *. (places_array): Add a testcase for simplified syntax place followed by length or length and stride. (cherry picked from commit a10794eafb151b9274d673dfae93459d437cbe4a) Diff: --- libgomp/ChangeLog.omp | 10 ++++++++++ libgomp/testsuite/libgomp.c/affinity-1.c | 5 +++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp index c149bc9a88b..12291307b64 100644 --- a/libgomp/ChangeLog.omp +++ b/libgomp/ChangeLog.omp @@ -1,3 +1,13 @@ +2021-10-15 Tobias Burnus + + Backported from master: + 2021-10-15 Jakub Jelinek + + * testsuite/libgomp.c/affinity-1.c (struct places): Change name field + type from char [50] to const char *. + (places_array): Add a testcase for simplified syntax place followed + by length or length and stride. + 2021-10-15 Tobias Burnus Backported from master: diff --git a/libgomp/testsuite/libgomp.c/affinity-1.c b/libgomp/testsuite/libgomp.c/affinity-1.c index 1039e3b9c96..085526db634 100644 --- a/libgomp/testsuite/libgomp.c/affinity-1.c +++ b/libgomp/testsuite/libgomp.c/affinity-1.c @@ -48,7 +48,7 @@ struct place }; struct places { - char name[50]; + const char *name; int count; struct place places[8]; } places_array[] = { @@ -63,7 +63,8 @@ struct places { 4, 1 }, { 5, 1 }, { 6, 1 }, { 7, 1 } } }, { "{0,1},{3,2,4},{6,5,!6},{6},{7:2:-1,!6}", 5, { { 0, 2 }, { 2, 3 }, { 5, 1 }, { 6, 1 }, { 7, 1 } } }, - { "1,2,{2,3,!2},3,3,!3,!{5:3:-1,!4,!5},{4},5,!4,!5", 3, + { "1,2,{2,3,!2},3,3,!3,!{5:3:-1,!4,!5},{4},5,!4,!5," + "1:2,!{1},!2,7:3:-2,!{5},!7,!3", 3, { { 1, 1 }, { 2, 1 }, { 3, 1 } } } };