public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-4442] openmp: Improve testsuite/libgomp.c/affinity-1.c testcase
@ 2021-10-15 15:21 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2021-10-15 15:21 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:a10794eafb151b9274d673dfae93459d437cbe4a

commit r12-4442-ga10794eafb151b9274d673dfae93459d437cbe4a
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Fri Oct 15 17:19:54 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  <jakub@redhat.com>
    
            * 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.

Diff:
---
 libgomp/testsuite/libgomp.c/affinity-1.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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 } } }
 };


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-15 15:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-15 15:21 [gcc r12-4442] openmp: Improve testsuite/libgomp.c/affinity-1.c testcase Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).