ci: fix dump_expression.vv when v is actually vprod (-‸ლ)

pull/13711/head
Delyan Angelov 2022-03-10 18:12:03 +02:00
parent e8c8f0e7c0
commit f3388df577
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 6 additions and 6 deletions

View File

@ -15,5 +15,5 @@
y: 2
z: 3
}
[vlib/v/tests/inout/dump_expression.vv:38] os.file_name(vexe).replace('.exe', ''): v
[vlib/v/tests/inout/dump_expression.vv:38] os.file_name(vfile): dump_expression.vv
[vlib/v/tests/inout/dump_expression.vv:41] f.read(mut buf): 10

View File

@ -34,11 +34,11 @@ fn dump_of_struct() {
}
fn dump_of_callexpr() {
vexe := @VEXE
dump(os.file_name(vexe).replace('.exe', ''))
mut f := os.open_file(os.join_path(os.dir(vexe), 'Makefile'), 'r') or { return }
mut buf := []byte{len:10}
dump( f.read(mut buf) or { -999 })
vfile := @FILE
dump(os.file_name(vfile))
mut f := os.open_file(@FILE, 'r') or { return }
mut buf := []byte{len: 10}
dump(f.read(mut buf) or { -999 })
f.close()
}