Descriptionmisc/cgo/test: make tests run on windows
- 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
Patch Set 1 #Patch Set 2 : diff -r 7ec969250bfc https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 7ec969250bfc https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 7ec969250bfc https://go.googlecode.com/hg/ #
Total comments: 2
Patch Set 5 : diff -r fa49a85c5941 https://go.googlecode.com/hg/ #Patch Set 6 : diff -r 25879029ed5b https://go.googlecode.com/hg/ #
MessagesTotal messages: 13
|