tests: fix vlib/os/environment.v

pull/4294/head
Delyan Angelov 2020-04-08 18:01:14 +03:00
parent 10c4c44d03
commit 3abbdd4a39
2 changed files with 1 additions and 2 deletions

View File

@ -31,7 +31,6 @@ const (
'vlib/net/http/http_test.v', 'vlib/net/http/http_test.v',
'vlib/net/socket_test.v', 'vlib/net/socket_test.v',
'vlib/net/socket_udp_test.v', 'vlib/net/socket_udp_test.v',
'vlib/os/environment_test.v', // Linux only
'vlib/regex/regex_test.v', 'vlib/regex/regex_test.v',
'vlib/sqlite/sqlite_test.v', // Linux only 'vlib/sqlite/sqlite_test.v', // Linux only
'vlib/strconv/ftoa/f32_f64_to_string_test.v', 'vlib/strconv/ftoa/f32_f64_to_string_test.v',

View File

@ -67,7 +67,7 @@ pub fn environ() map[string]string {
} }
C.FreeEnvironmentStringsW(estrings) C.FreeEnvironmentStringsW(estrings)
} $else { } $else {
e := &byteptr(&C.environ) e := &charptr(C.environ)
for i := 0; !isnil(e[i]); i++ { for i := 0; !isnil(e[i]); i++ {
eline := cstring_to_vstring(e[i]) eline := cstring_to_vstring(e[i])
eq_index := eline.index_byte(`=`) eq_index := eline.index_byte(`=`)