tests: fix v test-all

This commit is contained in:
Delyan Angelov 2023-11-05 13:09:37 +02:00
parent b734197714
commit 9effbec648
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 3 additions and 2 deletions

View File

@ -117,7 +117,7 @@ fn get_all_commands() []Command {
line: '${vexe} -o calling_c.exe run examples/call_c_from_v/main.c.v'
okmsg: 'V can run main.c.v files'
runcmd: .execute
contains: 'V can call C functions like puts too.'
contains: 'V can call C functions like `puts` too.'
}
$if linux || macos {
res << Command{

View File

@ -17,7 +17,8 @@ fn testsuite_end() {
fn test_conditional_executable_removal() {
os.chdir(test_path)!
os.execute_or_exit('${os.quoted_path(vexe)} init')
os.mkdir_all('src')!
os.write_file('src/main.v', 'fn main(){\n\tprintln("Hello World!")\n}\n')!
mut executable := 'run_check'
$if windows {