Skip to content

Commit

Permalink
tests: workaround name conflict, causing false positives with msvc on…
Browse files Browse the repository at this point in the history
… windows, when both tests were executed at the same time (locked executable)
  • Loading branch information
spytheman committed Nov 7, 2023
1 parent 22e17c3 commit d86b368
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions examples/dynamic_library_loader/use_test.v
Expand Up @@ -31,7 +31,7 @@ fn test_can_compile_main_program() {
os.chdir(cfolder) or {}
library_file_path := os.join_path(cfolder, dl.get_libname('library'))
assert os.is_file(library_file_path)
result := v_compile('run use.v')
result := v_compile('run use_shared_library.v')
// dump(result)
assert result.output.contains('res: 4')
os.rm(library_file_path) or {}
Expand All @@ -43,7 +43,7 @@ fn test_can_compile_and_use_library_with_skip_unused_home_dir() {
os.rm(library_file_path) or {}
v_compile('-skip-unused -d no_backtrace -o library -shared modules/library/library.v')
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')
os.rm(library_file_path) or {}
}
Expand All @@ -55,7 +55,7 @@ fn test_can_compile_and_use_library_with_skip_unused_location1_dir() {
os.mkdir('location1') or {}
v_compile('-skip-unused -d no_backtrace -o location1/library -shared modules/library/library.v')
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')
os.rm(library_file_path) or {}
}
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions examples/dynamic_library_loading/use_library_test.v
Expand Up @@ -32,7 +32,7 @@ fn test_can_compile_library() {
fn test_can_compile_main_program() {
os.chdir(cfolder) or {}
assert os.is_file(library_file_name)
result := v_compile('run use.v')
result := v_compile('run use_dl_module.v')
// dump(result)
assert result.output.contains('res: 4')
os.rm(library_file_name) or {}
Expand All @@ -43,7 +43,7 @@ fn test_can_compile_and_use_library_with_skip_unused() {
os.rm(library_file_name) or {}
v_compile('-skip-unused -d no_backtrace -o library -shared modules/library/library.v')
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')
os.rm(library_file_name) or {}
}
Expand Down

0 comments on commit d86b368

Please sign in to comment.