Speed up the test.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Mar 2007 13:01:49 +0000 (13:01 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Mar 2007 13:01:49 +0000 (13:01 +0000)
ChangeLog
tests/test-allocsa.c

index a67c341b66ae92a43ba5422d29160e528d347b82..6ec4c5c73c4dca1adf6f3532d5d2f3f9fd2c77d4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2007-03-04  Bruno Haible  <bruno@clisp.org>
 
+       * tests/test-allocsa.c (main): Halve the number of loop runs.
+
        * modules/alloca-opt-tests: New file.
        * tests/test-alloca-opt.c: New file.
 
index 6fa1efa0406764810f94451581623de06ae30284..64e9d541a0d7091260af518358ec5ad34e12f475 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of safe automatic memory allocation.
-   Copyright (C) 2005 Free Software Foundation, Inc.
+   Copyright (C) 2005, 2007 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -43,7 +43,7 @@ main ()
   int i;
 
   /* Repeat a lot of times, to make sure there's no memory leak.  */
-  for (i = 0; i < 100000; i++)
+  for (i = 0; i < 50000; i++)
     {
       /* Try various values.
          n = 0 gave a crash on Alpha with gcc-2.5.8.