tests: fix vlib/os/environment.v
parent
10c4c44d03
commit
3abbdd4a39
|
@ -31,7 +31,6 @@ const (
|
|||
'vlib/net/http/http_test.v',
|
||||
'vlib/net/socket_test.v',
|
||||
'vlib/net/socket_udp_test.v',
|
||||
'vlib/os/environment_test.v', // Linux only
|
||||
'vlib/regex/regex_test.v',
|
||||
'vlib/sqlite/sqlite_test.v', // Linux only
|
||||
'vlib/strconv/ftoa/f32_f64_to_string_test.v',
|
||||
|
|
|
@ -67,7 +67,7 @@ pub fn environ() map[string]string {
|
|||
}
|
||||
C.FreeEnvironmentStringsW(estrings)
|
||||
} $else {
|
||||
e := &byteptr(&C.environ)
|
||||
e := &charptr(C.environ)
|
||||
for i := 0; !isnil(e[i]); i++ {
|
||||
eline := cstring_to_vstring(e[i])
|
||||
eq_index := eline.index_byte(`=`)
|
||||
|
|
Loading…
Reference in New Issue