• Ian Lance Taylor's avatar
    unix: correct code for cover cmd · 44366790
    Ian Lance Taylor authored
    This copies http://golang.org/cl/8723 from the syscall package.
    
    Quoting the original CL:
    
        This is clumsy, but currently cover tool fails as:
    
        $ go test -run=none -cover syscall
        syscall_linux_amd64.go:15: can only use //go:noescape with external func imp
        FAIL        syscall [build failed]
    
        This happens because cover tool mishandles //go: comments.
        r and gri said that fixing cover is infeasible due to go/ast limitations.
    
        So at least fix the offending code so that coverage works.
        This come up in context of coverage-guided fuzzing which works best
        with program-wide coverage.
    
    Change-Id: Id9e243968a4eb7ae75a585877fdf3192c89e419c
    Reviewed-on: https://go-review.googlesource.com/10035Reviewed-by: 's avatarRob Pike <r@golang.org>
    44366790
Name
Last commit
Last update
plan9 Loading commit data...
unix Loading commit data...
windows 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 Loading commit data...
codereview.cfg Loading commit data...