5f7b84
commit 5dab5eafb3dc2f72aaab911084d127d1af45a08c
5f7b84
Author: Florian Weimer <fweimer@redhat.com>
5f7b84
Date:   Thu Aug 15 11:37:18 2019 +0200
5f7b84
5f7b84
    malloc: Various cleanups for malloc/tst-mxfast
5f7b84
    
5f7b84
    (cherry picked from commit f9769a239784772453d595bc2f4bed8739810e06)
5f7b84
5f7b84
diff --git a/malloc/Makefile b/malloc/Makefile
5f7b84
index bf9a53cb7c5ebacb..19c2a846ed8ce049 100644
5f7b84
--- a/malloc/Makefile
5f7b84
+++ b/malloc/Makefile
5f7b84
@@ -39,7 +39,6 @@ tests := mallocbug tst-malloc tst-valloc tst-calloc tst-obstack \
5f7b84
 	 tst-malloc-too-large \
5f7b84
 	 tst-malloc-stats-cancellation \
5f7b84
 	 tst-tcfree1 tst-tcfree2 tst-tcfree3 \
5f7b84
-	 tst-mxfast \
5f7b84
 
5f7b84
 tests-static := \
5f7b84
 	 tst-interpose-static-nothread \
5f7b84
@@ -55,7 +54,7 @@ tests-internal += \
5f7b84
 	 tst-dynarray-at-fail \
5f7b84
 
5f7b84
 ifneq (no,$(have-tunables))
5f7b84
-tests += tst-malloc-usable-tunables
5f7b84
+tests += tst-malloc-usable-tunables tst-mxfast
5f7b84
 tests-static += tst-malloc-usable-static-tunables
5f7b84
 endif
5f7b84
 
5f7b84
diff --git a/malloc/tst-mxfast.c b/malloc/tst-mxfast.c
5f7b84
index 7a371d2f9d2f0005..7a7750bc71024bfb 100644
5f7b84
--- a/malloc/tst-mxfast.c
5f7b84
+++ b/malloc/tst-mxfast.c
5f7b84
@@ -1,5 +1,5 @@
5f7b84
 /* Test that glibc.malloc.mxfast tunable works.
5f7b84
-   Copyright (C) 2018, 2019 Free Software Foundation, Inc.
5f7b84
+   Copyright (C) 2019 Free Software Foundation, Inc.
5f7b84
    This file is part of the GNU C Library.
5f7b84
 
5f7b84
    The GNU C Library is free software; you can redistribute it and/or
5f7b84
@@ -21,14 +21,14 @@
5f7b84
    the fast bins.  */
5f7b84
 
5f7b84
 #include <malloc.h>
5f7b84
-#include <assert.h>
5f7b84
+#include <support/check.h>
5f7b84
 
5f7b84
 int
5f7b84
-do_test(void)
5f7b84
+do_test (void)
5f7b84
 {
5f7b84
   struct mallinfo m;
5f7b84
-  char * volatile p1;
5f7b84
-  char * volatile p2;
5f7b84
+  char *volatile p1;
5f7b84
+  char *volatile p2;
5f7b84
 
5f7b84
   /* Arbitrary value; must be in default fastbin range.  */
5f7b84
   p1 = malloc (3);
5f7b84
@@ -36,10 +36,10 @@ do_test(void)
5f7b84
   p2 = malloc (512);
5f7b84
   free (p1);
5f7b84
 
5f7b84
-  m = mallinfo();
5f7b84
+  m = mallinfo ();
5f7b84
 
5f7b84
   /* This will fail if there are any blocks in the fastbins.  */
5f7b84
-  assert (m.smblks == 0);
5f7b84
+  TEST_COMPARE (m.smblks, 0);
5f7b84
 
5f7b84
   /* To keep gcc happy.  */
5f7b84
   free (p2);