about summary refs log tree commit diff
path: root/malloc/tst-mxfast.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2019-08-15 11:37:18 +0200
committerFlorian Weimer <fweimer@redhat.com>2019-08-15 11:37:18 +0200
commitf9769a239784772453d595bc2f4bed8739810e06 (patch)
tree9275a1a05811d349e1e28358da02cedd81cc9df5 /malloc/tst-mxfast.c
parent341da5b4b6253de9a7581a066f33f89cacb44dec (diff)
downloadglibc-f9769a239784772453d595bc2f4bed8739810e06.tar.gz
glibc-f9769a239784772453d595bc2f4bed8739810e06.tar.xz
glibc-f9769a239784772453d595bc2f4bed8739810e06.zip
malloc: Various cleanups for malloc/tst-mxfast
Diffstat (limited to 'malloc/tst-mxfast.c')
-rw-r--r--malloc/tst-mxfast.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/malloc/tst-mxfast.c b/malloc/tst-mxfast.c
index 7a371d2f9d..7a7750bc71 100644
--- a/malloc/tst-mxfast.c
+++ b/malloc/tst-mxfast.c
@@ -1,5 +1,5 @@
 /* Test that glibc.malloc.mxfast tunable works.
-   Copyright (C) 2018, 2019 Free Software Foundation, Inc.
+   Copyright (C) 2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -21,14 +21,14 @@
    the fast bins.  */
 
 #include <malloc.h>
-#include <assert.h>
+#include <support/check.h>
 
 int
-do_test(void)
+do_test (void)
 {
   struct mallinfo m;
-  char * volatile p1;
-  char * volatile p2;
+  char *volatile p1;
+  char *volatile p2;
 
   /* Arbitrary value; must be in default fastbin range.  */
   p1 = malloc (3);
@@ -36,10 +36,10 @@ do_test(void)
   p2 = malloc (512);
   free (p1);
 
-  m = mallinfo();
+  m = mallinfo ();
 
   /* This will fail if there are any blocks in the fastbins.  */
-  assert (m.smblks == 0);
+  TEST_COMPARE (m.smblks, 0);
 
   /* To keep gcc happy.  */
   free (p2);