ci: disable socket error assertion in profile_test.v

pull/7556/head
Delyan Angelov 2020-12-25 16:10:18 +02:00
parent a631078d8a
commit c6b0ce2a07
1 changed files with 12 additions and 10 deletions

View File

@ -1,21 +1,23 @@
import os
const (
vexe = os.getenv('VEXE')
vroot = os.dir(vexe)
vexe = os.getenv('VEXE')
vroot = os.dir(vexe)
)
fn test_vexe_exists() {
assert vexe.len > 0
assert vexe.len > 0
assert os.is_file(vexe)
}
fn test_v_profile_works() {
res := os.exec('"$vexe" -profile - run vlib/v/tests/profile/calling_http_get.v') or { panic(err) }
// eprintln('res: $res')
assert res.exit_code == 0
assert res.output.len > 0
assert res.output.starts_with('net: socket error')
assert res.output.contains(' main__main')
assert res.output.contains(' os__init_os_args')
res := os.exec('"$vexe" -profile - run vlib/v/tests/profile/calling_http_get.v') or {
panic(err)
}
// eprintln('res: $res')
assert res.exit_code == 0
assert res.output.len > 0
// assert res.output.starts_with('net: socket error')
assert res.output.contains(' main__main')
assert res.output.contains(' os__init_os_args')
}