Re: [PATCH v2 3/4] userfaultfd: selftest: Skip test if a feature isn't supported

2018-08-06 Thread Mike Rapoport
On Fri, Aug 03, 2018 at 07:00:45PM -0300, Thiago Jung Bauermann wrote: > If userfaultfd runs on a system that doesn't support some feature it is > trying to test, it currently ends with error code 1 which indicates > test failure: > > # ./userfaultfd anon 10 10 > nr_pages: 160, nr_pages_per_cp

[PATCH v2 3/4] userfaultfd: selftest: Skip test if a feature isn't supported

2018-08-03 Thread Thiago Jung Bauermann
If userfaultfd runs on a system that doesn't support some feature it is trying to test, it currently ends with error code 1 which indicates test failure: # ./userfaultfd anon 10 10 nr_pages: 160, nr_pages_per_cpu: 80 bounces: 9, mode: rnd poll, userfaults: 7 59 bounces: 8, mode: poll, user