Re: [PATCH 2/2] selftests/powerpc: Skip test instead of failing

2018-10-31 Thread Michael Ellerman
Tyrel Datwyler writes: > On 10/30/2018 08:16 AM, Michael Ellerman wrote: >> Thiago Jung Bauermann writes: >> >>> Breno Leitao writes: >>> Hi Tyrel, On 10/23/2018 05:41 PM, Tyrel Datwyler wrote: >> --- a/tools/testing/selftests/powerpc/ptrace/core-pkey.c >> +++ b/tools/tes

Re: [PATCH 2/2] selftests/powerpc: Skip test instead of failing

2018-10-31 Thread Michael Ellerman
Tyrel Datwyler writes: > On 10/23/2018 01:23 PM, Breno Leitao wrote: >> Current core-pkey selftest fails if the test runs without privileges to >> write into the core pattern file (/proc/sys/kernel/core_pattern). This >> causes the test to fail and give the impression that the subsystem being >> t

Re: [PATCH 2/2] selftests/powerpc: Skip test instead of failing

2018-10-30 Thread Tyrel Datwyler
On 10/30/2018 08:16 AM, Michael Ellerman wrote: > Thiago Jung Bauermann writes: > >> Breno Leitao writes: >> >>> Hi Tyrel, >>> >>> On 10/23/2018 05:41 PM, Tyrel Datwyler wrote: > --- a/tools/testing/selftests/powerpc/ptrace/core-pkey.c > +++ b/tools/testing/selftests/powerpc/ptrace/core-

Re: [PATCH 2/2] selftests/powerpc: Skip test instead of failing

2018-10-30 Thread Michael Ellerman
Thiago Jung Bauermann writes: > Breno Leitao writes: > >> Hi Tyrel, >> >> On 10/23/2018 05:41 PM, Tyrel Datwyler wrote: --- a/tools/testing/selftests/powerpc/ptrace/core-pkey.c +++ b/tools/testing/selftests/powerpc/ptrace/core-pkey.c @@ -352,17 +352,11 @@ static int write_core_pat

Re: [PATCH 2/2] selftests/powerpc: Skip test instead of failing

2018-10-29 Thread Thiago Jung Bauermann
Breno Leitao writes: > Hi Tyrel, > > On 10/23/2018 05:41 PM, Tyrel Datwyler wrote: >>> --- a/tools/testing/selftests/powerpc/ptrace/core-pkey.c >>> +++ b/tools/testing/selftests/powerpc/ptrace/core-pkey.c >>> @@ -352,17 +352,11 @@ static int write_core_pattern(const char >>> *core_pattern) >>>

Re: [PATCH 2/2] selftests/powerpc: Skip test instead of failing

2018-10-24 Thread Breno Leitao
Hi Tyrel, On 10/23/2018 05:41 PM, Tyrel Datwyler wrote: >> --- a/tools/testing/selftests/powerpc/ptrace/core-pkey.c >> +++ b/tools/testing/selftests/powerpc/ptrace/core-pkey.c >> @@ -352,17 +352,11 @@ static int write_core_pattern(const char *core_pattern) >> FILE *f; >> >> f = fopen(cor

Re: [PATCH 2/2] selftests/powerpc: Skip test instead of failing

2018-10-23 Thread Tyrel Datwyler
On 10/23/2018 01:23 PM, Breno Leitao wrote: > Current core-pkey selftest fails if the test runs without privileges to > write into the core pattern file (/proc/sys/kernel/core_pattern). This > causes the test to fail and give the impression that the subsystem being > tested is broken, when, in fact

[PATCH 2/2] selftests/powerpc: Skip test instead of failing

2018-10-23 Thread Breno Leitao
Current core-pkey selftest fails if the test runs without privileges to write into the core pattern file (/proc/sys/kernel/core_pattern). This causes the test to fail and give the impression that the subsystem being tested is broken, when, in fact, the test is being executed without the proper priv