X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=t%2Fstest.c;h=0e0d8b0b4785998546f437fb336a2038ec34ce41;hb=922a5be82ca50f7c89a1f9c4b84757ba8636e2d1;hp=c1794843948392ba1ed1c48f08c2ac0519fcb1b1;hpb=fbc2792b20276f7fa14c44f7b235ca448b383b50;p=fio.git diff --git a/t/stest.c b/t/stest.c index c1794843..0e0d8b0b 100644 --- a/t/stest.c +++ b/t/stest.c @@ -4,8 +4,8 @@ #include "../smalloc.h" #include "../flist.h" - -FILE *f_err; +#include "../arch/arch.h" +#include "debug.h" #define MAGIC1 0xa9b1c8d2 #define MAGIC2 0xf0a1e9b3 @@ -31,7 +31,7 @@ static int do_rand_allocs(void) srand(MAGIC1); #endif nr = total = 0; - while (total < 128*1024*1024UL) { + while (total < 120*1024*1024UL) { size = 8 * sizeof(struct elem) + (int) (999.0 * (rand() / (RAND_MAX + 1.0))); e = smalloc(size); if (!e) { @@ -70,9 +70,9 @@ static int do_specific_alloc(unsigned long size) int main(int argc, char *argv[]) { - f_err = stderr; - + arch_init(argv); sinit(); + debug_init(); do_rand_allocs();