Subject: bug#28610: tcsh 6.20.00 testsuite: 68 failed

From: [email-masked] (Ludovic Courtès)
Date: Fri, 29 Sep 2017 09:55:16 +0200

Hello,

Drashne <[email-masked]> skribis:

> Thank you for looking in to this.
>
> The 'testsuite.log' file you requested is attached.
>
> I noticed that in the "Detailed failed tests" section, it has:
>
>   68. commands.at:893: testing nice ...
>   ./commands.at:896: tcsh -f -c 'nice set var=1; echo $?var'
>   --- /dev/null 2017-09-22 17:50:11.102758003 +0000
>   +++ /tmp/guix-build-tcsh-6.20.00.drv-0/tcsh-6.20.00/testsuite.dir/at-groups/68/stderr 2017-09-29 01:59:18.591958887 +0000
>   @@ -0,0 +1 @@
>   +setpriority: Permission denied.
>   68. commands.at:893: 68. nice (commands.at:893): FAILED (commands.at:896)
>
> So at first glance the failure appears to be caused by "setpriority: Permission denied"

Per setpriority(2), the only was this can happen is if we’re trying to
set a nice value lower than the current one:

   EACCES The  caller attempted to set a lower nice value (i.e., a higher process priority), but did not have
          the required privilege (on Linux: did not have the CAP_SYS_NICE capability).

Could it be that you’re running the daemon with “nice guix-daemon …” or
something like that?

Thanks,
Ludo’.