avr-libc-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-commit] [2150] Adapt this script to the new malloc internals (


From: Joerg Wunsch
Subject: [avr-libc-commit] [2150] Adapt this script to the new malloc internals (empty freelist after
Date: Wed, 09 Jun 2010 20:46:25 +0000

Revision: 2150
          http://svn.sv.gnu.org/viewvc/?view=rev&root=avr-libc&revision=2150
Author:   joerg_wunsch
Date:     2010-06-09 20:46:25 +0000 (Wed, 09 Jun 2010)
Log Message:
-----------
Adapt this script to the new malloc internals (empty freelist after
deallocating everything).

Modified Paths:
--------------
    trunk/avr-libc/tests/simulate/other/malloc-01.c

Modified: trunk/avr-libc/tests/simulate/other/malloc-01.c
===================================================================
--- trunk/avr-libc/tests/simulate/other/malloc-01.c     2010-06-09 20:45:37 UTC 
(rev 2149)
+++ trunk/avr-libc/tests/simulate/other/malloc-01.c     2010-06-09 20:46:25 UTC 
(rev 2150)
@@ -59,6 +59,8 @@
  * memory that has been freed up again).
  */
 
+#define N 500
+
 struct list1
 {
   struct list1 *next;
@@ -248,7 +250,7 @@
   __malloc_margin = 32;
 
   srandom(RAND_START_VALUE);
-  for (i = 0; i < 500; i++)
+  for (i = 0; i < N; i++)
     {
       r = random();
       x = r & 0x0f;
@@ -316,7 +318,7 @@
   if (stats[0] != stats[1] || stats[2] != stats[3])
     exit(1);
 #ifdef __AVR__
-  if (__flp->nx != NULL)
+  if (__flp != NULL)
     exit(2);
 #endif
   return 0;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]