Hey Efraim,
Efraim Flashner <[email protected]> skribis:
> I got a test failure on powerpc-linux in tests/services/log-rotation.sh.
The failure looks like this:
--8<---------------cut here---------------start------------->8---
+ herd -s t-socket-5219 stop three
++ file_descriptor_count
++ ls -l /proc/5229/fd/0 /proc/5229/fd/1 /proc/5229/fd/10 /proc/5229/fd/11
/proc/5229/fd/12 /proc/5229/fd/13 /proc/5229/fd/14 /proc/5229/fd/15
/proc/5229/fd/16 /proc/5229/fd/17 /proc/5229/fd/18 /proc/5229/fd/19
/proc/5229/fd/2 /proc/5229/fd/21 /proc/5229/fd/22 /proc/5229/fd/23
/proc/5229/fd/24 /proc/5229/fd/25 /proc/5229/fd/26 /proc/5229/fd/3
/proc/5229/fd/4 /proc/5229/fd/5 /proc/5229/fd/6 /proc/5229/fd/7 /proc/5229/fd/8
/proc/5229/fd/9
++ wc -l
+ test 26 -le 22
--8<---------------cut here---------------end--------------->8---
No idea what could be causing this. It would be great if you could see
if this is reproducible, for instance by running:
while make check TESTS=tests/service/log-rotation.sh ; do : ; done
from the failed build tree.
If it is, you could also try with this patch, to get more info:
diff --git a/tests/services/log-rotation.sh b/tests/services/log-rotation.sh
index b168aa7..f1a962d 100644
--- a/tests/services/log-rotation.sh
+++ b/tests/services/log-rotation.sh
@@ -96,6 +96,7 @@ shepherd_pid="$(cat "$pid")"
file_descriptor_count ()
{
+ ls -l /proc/$shepherd_pid/fd/[0-9]*
ls -l /proc/$shepherd_pid/fd/[0-9]* | wc -l
}
Thanks for the bug report. :-)
Ludo’.