1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix warnings for compiling builder_test.v too

This commit is contained in:
Delyan Angelov 2022-12-21 21:14:21 +02:00
parent 46ced75184
commit 87f8069728
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -15,7 +15,7 @@ fn testsuite_end() {
}
fn test_conditional_executable_removal() {
os.chdir(test_path)?
os.chdir(test_path)!
os.execute_or_exit('${os.quoted_path(vexe)} init')
mut executable := 'run_check'
@ -23,23 +23,23 @@ fn test_conditional_executable_removal() {
executable += '.exe'
}
original_file_list_ := os.ls(test_path)?
original_file_list_ := os.ls(test_path)!
dump(original_file_list_)
assert executable !in original_file_list_
assert os.execute('${os.quoted_path(vexe)} run .').output.trim_space() == 'Hello World!'
after_run_file_list := os.ls(test_path)?
after_run_file_list := os.ls(test_path)!
dump(after_run_file_list)
assert executable !in after_run_file_list
assert os.execute('${os.quoted_path(vexe)} .').exit_code == 0
assert os.execute('./${executable}').output.trim_space() == 'Hello World!'
after_compilation__ := os.ls(test_path)?
after_compilation__ := os.ls(test_path)!
dump(after_compilation__)
assert executable in after_compilation__
assert os.execute('${os.quoted_path(vexe)} run .').output.trim_space() == 'Hello World!'
after_second_run___ := os.ls(test_path)?
after_second_run___ := os.ls(test_path)!
dump(after_second_run___)
assert executable in after_second_run___
}