mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: disable socket error assertion in profile_test.v
This commit is contained in:
parent
a631078d8a
commit
c6b0ce2a07
@ -1,21 +1,23 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
const (
|
const (
|
||||||
vexe = os.getenv('VEXE')
|
vexe = os.getenv('VEXE')
|
||||||
vroot = os.dir(vexe)
|
vroot = os.dir(vexe)
|
||||||
)
|
)
|
||||||
|
|
||||||
fn test_vexe_exists() {
|
fn test_vexe_exists() {
|
||||||
assert vexe.len > 0
|
assert vexe.len > 0
|
||||||
assert os.is_file(vexe)
|
assert os.is_file(vexe)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn test_v_profile_works() {
|
fn test_v_profile_works() {
|
||||||
res := os.exec('"$vexe" -profile - run vlib/v/tests/profile/calling_http_get.v') or { panic(err) }
|
res := os.exec('"$vexe" -profile - run vlib/v/tests/profile/calling_http_get.v') or {
|
||||||
// eprintln('res: $res')
|
panic(err)
|
||||||
assert res.exit_code == 0
|
}
|
||||||
assert res.output.len > 0
|
// eprintln('res: $res')
|
||||||
assert res.output.starts_with('net: socket error')
|
assert res.exit_code == 0
|
||||||
assert res.output.contains(' main__main')
|
assert res.output.len > 0
|
||||||
assert res.output.contains(' os__init_os_args')
|
// assert res.output.starts_with('net: socket error')
|
||||||
|
assert res.output.contains(' main__main')
|
||||||
|
assert res.output.contains(' os__init_os_args')
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user