ci: fix -skip-unused compiler test on windows, using -d no_backtrace

pull/8591/head
Delyan Angelov 2021-02-05 18:31:04 +02:00
parent 6b776e686e
commit a6ecc19040
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 13 additions and 2 deletions

View File

@ -42,7 +42,18 @@ fn (mut c Checker) mark_used(ast_files []ast.File) {
c.table.used_fns['panic'] = true c.table.used_fns['panic'] = true
c.table.used_fns['eprintln'] = true c.table.used_fns['eprintln'] = true
c.table.used_fns['print_backtrace_skipping_top_frames'] = true c.table.used_fns['print_backtrace_skipping_top_frames'] = true
c.table.used_fns['print_backtrace_skipping_top_frames_mac'] = true
c.table.used_fns['print_backtrace_skipping_top_frames_linux'] = true c.table.used_fns['print_backtrace_skipping_top_frames_linux'] = true
c.table.used_fns['print_backtrace_skipping_top_frames_freebsd'] = true
c.table.used_fns['print_backtrace_skipping_top_frames_windows'] = true
c.table.used_fns['print_backtrace_skipping_top_frames_mingw'] = true
c.table.used_fns['print_backtrace_skipping_top_frames_msvc'] = true
c.table.used_fns['print_backtrace_skipping_top_frames_tcc'] = true
c.table.used_fns['is_atty'] = true
c.table.used_fns['add_unhandled_exception_handler'] = true
c.table.used_fns['add_vectored_exception_handler'] = true
c.table.used_fns['unhandled_exception_handler'] = true
c.table.used_fns['restore_codepage'] = true
c.table.used_fns['new_array_from_c_array'] = true c.table.used_fns['new_array_from_c_array'] = true
c.table.used_fns['__new_array_with_default'] = true c.table.used_fns['__new_array_with_default'] = true
c.table.used_fns['__new_array'] = true c.table.used_fns['__new_array'] = true

View File

@ -86,8 +86,8 @@ fn test_all() {
tasks.add('', module_dir, '-prod run', '.out', module_tests, true) tasks.add('', module_dir, '-prod run', '.out', module_tests, true)
tasks.add('', run_dir, 'run', '.run.out', run_tests, false) tasks.add('', run_dir, 'run', '.run.out', run_tests, false)
tasks.add('', skip_unused_dir, 'run', '.run.out', skip_unused_dir_tests, false) tasks.add('', skip_unused_dir, 'run', '.run.out', skip_unused_dir_tests, false)
tasks.add('', skip_unused_dir, '-skip-unused run', '.skip_unused.run.out', skip_unused_dir_tests, tasks.add('', skip_unused_dir, '-d no_backtrace -skip-unused run', '.skip_unused.run.out',
false) skip_unused_dir_tests, false)
tasks.run() tasks.run()
if github_job == 'ubuntu-tcc' { if github_job == 'ubuntu-tcc' {
// these should be run serially, since they depend on setting and using environment variables // these should be run serially, since they depend on setting and using environment variables