Skip to content

Commit bb57531

Browse files
committed
test
1 parent 86aac16 commit bb57531

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

none/tests/filter_fdleak

+5-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,8 @@ sed "s/by 0x........: main (.*)/by 0x........: main/" |
5656
perl -p -e "s/\(syscall-template.S:[0-9]*\)/(in \/...libc...)/" |
5757
perl -p -e "s/\(close.c:[0-9]*\)/(in \/...libc...)/" |
5858
perl -p -e "s/\(creat(?:64)?.c:[0-9]*\)/(in \/...libc...)/" |
59-
perl -p -e "s/\(dup2.c:[0-9]*\)/(in \/...libc...)/"
59+
perl -p -e "s/\(dup2.c:[0-9]*\)/(in \/...libc...)/" |
60+
61+
# For GitHub Actions: it keeps 2 sockets opened at all time and we can't close them
62+
# so we just substract them from the "inherited" count
63+
python3 -c 'import sys, re; r = re.compile(r"FILE DESCRIPTORS: ([0-9]+) open \(([0-9]+) inherited\) at exit\."); [print(f"FILE DESCRIPTORS: {m.group(1)} open ({int(m.group(2))-2} inherited) at exit.") if (m := r.search(line)) else print(line, end="") for line in sys.stdin]'

0 commit comments

Comments
 (0)