mirror of
https://github.com/vlang/v.git
synced 2025-09-11 16:36:20 -04:00
tests: workaround name conflict, causing false positives with msvc on windows, when both tests were executed at the same time (locked executable)
This commit is contained in:
parent
22e17c3e8f
commit
d86b3689d9
@ -31,7 +31,7 @@ fn test_can_compile_main_program() {
|
|||||||
os.chdir(cfolder) or {}
|
os.chdir(cfolder) or {}
|
||||||
library_file_path := os.join_path(cfolder, dl.get_libname('library'))
|
library_file_path := os.join_path(cfolder, dl.get_libname('library'))
|
||||||
assert os.is_file(library_file_path)
|
assert os.is_file(library_file_path)
|
||||||
result := v_compile('run use.v')
|
result := v_compile('run use_shared_library.v')
|
||||||
// dump(result)
|
// dump(result)
|
||||||
assert result.output.contains('res: 4')
|
assert result.output.contains('res: 4')
|
||||||
os.rm(library_file_path) or {}
|
os.rm(library_file_path) or {}
|
||||||
@ -43,7 +43,7 @@ fn test_can_compile_and_use_library_with_skip_unused_home_dir() {
|
|||||||
os.rm(library_file_path) or {}
|
os.rm(library_file_path) or {}
|
||||||
v_compile('-skip-unused -d no_backtrace -o library -shared modules/library/library.v')
|
v_compile('-skip-unused -d no_backtrace -o library -shared modules/library/library.v')
|
||||||
assert os.is_file(library_file_path)
|
assert os.is_file(library_file_path)
|
||||||
result := v_compile('run use.v')
|
result := v_compile('run use_shared_library.v')
|
||||||
assert result.output.contains('res: 4')
|
assert result.output.contains('res: 4')
|
||||||
os.rm(library_file_path) or {}
|
os.rm(library_file_path) or {}
|
||||||
}
|
}
|
||||||
@ -55,7 +55,7 @@ fn test_can_compile_and_use_library_with_skip_unused_location1_dir() {
|
|||||||
os.mkdir('location1') or {}
|
os.mkdir('location1') or {}
|
||||||
v_compile('-skip-unused -d no_backtrace -o location1/library -shared modules/library/library.v')
|
v_compile('-skip-unused -d no_backtrace -o location1/library -shared modules/library/library.v')
|
||||||
assert os.is_file(library_file_path)
|
assert os.is_file(library_file_path)
|
||||||
result := v_compile('run use.v')
|
result := v_compile('run use_shared_library.v')
|
||||||
assert result.output.contains('res: 4')
|
assert result.output.contains('res: 4')
|
||||||
os.rm(library_file_path) or {}
|
os.rm(library_file_path) or {}
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ fn test_can_compile_library() {
|
|||||||
fn test_can_compile_main_program() {
|
fn test_can_compile_main_program() {
|
||||||
os.chdir(cfolder) or {}
|
os.chdir(cfolder) or {}
|
||||||
assert os.is_file(library_file_name)
|
assert os.is_file(library_file_name)
|
||||||
result := v_compile('run use.v')
|
result := v_compile('run use_dl_module.v')
|
||||||
// dump(result)
|
// dump(result)
|
||||||
assert result.output.contains('res: 4')
|
assert result.output.contains('res: 4')
|
||||||
os.rm(library_file_name) or {}
|
os.rm(library_file_name) or {}
|
||||||
@ -43,7 +43,7 @@ fn test_can_compile_and_use_library_with_skip_unused() {
|
|||||||
os.rm(library_file_name) or {}
|
os.rm(library_file_name) or {}
|
||||||
v_compile('-skip-unused -d no_backtrace -o library -shared modules/library/library.v')
|
v_compile('-skip-unused -d no_backtrace -o library -shared modules/library/library.v')
|
||||||
assert os.is_file(library_file_name)
|
assert os.is_file(library_file_name)
|
||||||
result := v_compile('run use.v')
|
result := v_compile('run use_dl_module.v')
|
||||||
assert result.output.contains('res: 4')
|
assert result.output.contains('res: 4')
|
||||||
os.rm(library_file_name) or {}
|
os.rm(library_file_name) or {}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user