Hi!
> > +                   ret = sysinfo(&info);
> > +                   if (ret != 0)
> > +                           tst_brkm(TFAIL, cleanup, "sysinfo failed");
> > +                   freeram_after =
> > +                           (unsigned long long)info.freeram *
> > +                           (unsigned long long)info.mem_unit;
> 
> man sysinfo:
> 
>         This function is Linux-specific, and should not be used in 
> programs intended to be portable.
> 
> We're expecting all LTP tests are POSIX-compatible, sysinfo is 
> Linux-specific, would it better to read the info from /proc/meminfo 
> directly?

That is true for the Open Posix Testsuite, but this test is added under
testcases/kernel/ for which it is fine.

Note also that MAP_POPULATE is itself Linux specific ;).

-- 
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to