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:
parent
46ced75184
commit
87f8069728
@ -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___
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user