• Mikio Hara's avatar
    syscall: add mmap test · b05f3de5
    Mikio Hara authored
    This CL adds a test that calls Mmap and Munmap through Syscall9
    as the canary that detects assembly fragment breakage. For now
    there is no package test that uses Syscall9 in the standard
    library across all Unix-like systems.
    
    Note that the package runtime owns its assembly fragments, so
    this canary never works for runtime breakage.
    
    LGTM=iant, bradfitz
    R=iant, minux.ma, bradfitz
    CC=golang-codereviews
    https://golang.org/cl/61520049
    b05f3de5
syscall_unix_test.go 7.93 KB