• Alex Brainman's avatar
    misc/cgo/test: make tests run on windows · 8d6958fc
    Alex Brainman authored
    - use proper Win64 gcc calling convention when
      calling initcgo on amd64
    - increase g0 stack size to 64K on amd64 to make
      it the same as 386
    - implement C.sleep
    - do not use C.stat, since it is renamed to C._stat by mingw
    - use fopen to implement TestErrno, since C.strtol
      always succeeds on windows
    - skip TestSetEnv on windows, because os.Setenv
      sets windows process environment, while C.getenv
      inspects internal C runtime variable instead
    
    R=golang-dev, vcc.163, rsc
    CC=golang-dev
    https://golang.org/cl/5500094
    8d6958fc
Name
Last commit
Last update
..
Makefile Loading commit data...
align.go Loading commit data...
basic.go Loading commit data...
callback.go Loading commit data...
callback_c.c Loading commit data...
cgo_test.go Loading commit data...
duplicate_symbol.go Loading commit data...
env.go Loading commit data...
exports.go Loading commit data...
helpers.go Loading commit data...
issue1222.go Loading commit data...
issue1328.go Loading commit data...
issue1560.go Loading commit data...
issue2462.go Loading commit data...
runtime.c Loading commit data...
sleep_windows.go Loading commit data...