mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tests: fix vlib/os/environment.v
This commit is contained in:
@ -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',
|
||||||
|
@ -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(`=`)
|
||||||
|
Reference in New Issue
Block a user