• Caio Marcelo de Oliveira Filho's avatar
    net/http: relax the matching of strace output in test · 2ba3fd48
    Caio Marcelo de Oliveira Filho authored
    Modify the regex in TestLinuxSendfile to not match the parameters of
    the syscall, just its name and the opening parenthesis. This is enough
    to recognize that the syscall was invoked.
    
    This fixes the TestLinuxSendfile test when running in Clear Linux,
    where strace always execute with -yy implied, having output with extra
    information in the parameters:
    
        [pid  5336] sendfile(6<TCP:[127.0.0.1:35007->127.0.0.1:55170]>, 8</home/c/src/go/src/net/http/testdata/index.html>, NULL, 22) = 22
    
    Change-Id: If7639b785d5fdf65fae8e6149a97a57b06ea981c
    Reviewed-on: https://go-review.googlesource.com/85657Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    2ba3fd48
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...