diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2017-01-31 14:03:56 +0000 |
---|---|---|
committer | Christophe Lyon <clyon@gcc.gnu.org> | 2017-01-31 15:03:56 +0100 |
commit | 5b11971a564ab8a207e0fa416eb9e0424514529e (patch) | |
tree | 6b63899f651d5526e6bb428d974577edd7c06593 | |
parent | 4997a71dbb815a65be536ad1a5e70cf95a63c6ab (diff) | |
download | gcc-5b11971a564ab8a207e0fa416eb9e0424514529e.zip gcc-5b11971a564ab8a207e0fa416eb9e0424514529e.tar.gz gcc-5b11971a564ab8a207e0fa416eb9e0424514529e.tar.bz2 |
[testsuite] gcc.dg/memcmp-1.c: Fix testcase for newlib.
2017-01-31 Christophe Lyon <christophe.lyon@linaro.org>
* gcc.dg/memcmp-1.c (static void test_driver_memcmp): Call
rand() instead of random().
From-SVN: r245061
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/memcmp-1.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fef5e87..76835d4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-01-31 Christophe Lyon <christophe.lyon@linaro.org> + + * gcc.dg/memcmp-1.c (static void test_driver_memcmp): Call + rand() instead of random(). + 2017-01-30 Aldy Hernandez <aldyh@redhat.com> PR tree-optimization/71691 diff --git a/gcc/testsuite/gcc.dg/memcmp-1.c b/gcc/testsuite/gcc.dg/memcmp-1.c index b4fd780..828a0ca 100644 --- a/gcc/testsuite/gcc.dg/memcmp-1.c +++ b/gcc/testsuite/gcc.dg/memcmp-1.c @@ -28,12 +28,12 @@ static void test_driver_memcmp (void (test_memcmp)(const char *, const char *, i for(l=0;l<sz;l++) { for(i=0;i<NRAND/sz;i++) { for(j=0;j<l;j++) { - buf1[j] = random() & 0xff; + buf1[j] = rand() & 0xff; buf2[j] = buf1[j]; } for(j=l;j<sz;j++) { - buf1[j] = random() & 0xff; - buf2[j] = random() & 0xff; + buf1[j] = rand() & 0xff; + buf2[j] = rand() & 0xff; } } e = lib_memcmp(buf1,buf2,sz); |