Re: [LTP] [PATCH 1/2] mm/vma01: consider topdown and bottomup allocation

Wanlong Gao
2012-07-09T12:06:51Z

> + if (topdown) {
> + x = get_end_addr(u);
> + printf("child : x = %p\n", x);
> + if (x == t + 3*ps)
> + exit(1);
> + else if (x == t && get_end_addr(x) == t + 3*ps)
> + exit(0);
> + } else {
> + x = get_end_addr(t);
> + printf("child : x = %p\n", x);
> + if (x == t + 6*ps)
> + exit(1);
> + else if (x == u && get_end_addr(x) == t + 6*ps)
> exit(0);
> }

Looks good to me.

Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

But why not use tst_resm(TINFO, ) instead?

Thanks,