Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v/pref: Fix pref test on Freebsd #21385

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion vlib/v/pref/pref_test.v
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@ fn test_version_falg() {
assert v_verbose_cmd_res != v_ver_cmd_res
assert v_verbose_cmd_res.contains('v.pref.lookup_path:')

v_verbose_cmd_with_additional_args_res := os.execute_opt('${vexe} -cc tcc -v run ${example_path}')!.output
// tcc does not handle the symver assembly directive which is
// a problem on FreeBSD 14
mut compiler := 'tcc'
$if freebsd && clang {
compiler = 'clang'
}

v_verbose_cmd_with_additional_args_res := os.execute_opt('${vexe} -cc ${compiler} -v run ${example_path}')!.output
assert v_verbose_cmd_with_additional_args_res != v_ver_cmd_res
assert v_verbose_cmd_with_additional_args_res.contains('v.pref.lookup_path:')
}