Refactor #includes and headers
[fio.git] / t / stest.c
index fb51989521ec951c308a578c205c77597d145d59..04df60dc42fa77f6df9de923c452a4f86a58a81c 100644 (file)
--- a/t/stest.c
+++ b/t/stest.c
@@ -4,6 +4,7 @@
 
 #include "../smalloc.h"
 #include "../flist.h"
+#include "../arch/arch.h"
 #include "debug.h"
 
 #define MAGIC1 0xa9b1c8d2
@@ -58,25 +59,14 @@ static int do_rand_allocs(void)
        return 0;
 }
 
-static int do_specific_alloc(unsigned long size)
-{
-       void *ptr;
-
-       ptr = smalloc(size);
-       sfree(ptr);
-       return 0;
-}
-
 int main(int argc, char *argv[])
 {
+       arch_init(argv);
        sinit();
        debug_init();
 
        do_rand_allocs();
 
-       /* smalloc bug, commit 271067a6 */
-       do_specific_alloc(671386584);
-
        scleanup();
        return 0;
 }