Skip to content

Commit

Permalink
Misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
FractalFir committed Sep 12, 2024
1 parent e5a524b commit fc62557
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
6 changes: 4 additions & 2 deletions src/compile_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ pub fn test_dotnet_executable(file_path: &str, test_dir: &str) -> String {
} else {
format!("{test_dir}/{file_path}.runtimeconfig.json")
};
println!("{config_path:?}");
let mut file = std::fs::File::create(config_path).unwrap();

let mut file = std::fs::File::create(&config_path).unwrap_or_else(|err| {
panic!("Could not create runtime config file at {config_path:?} due to {err:?}")
});
file.write_all(cilly::v2::il_exporter::get_runtime_config().as_bytes())
.expect("Could not write runtime config");
//RUNTIME_CONFIG
Expand Down
10 changes: 1 addition & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,15 +337,7 @@ const ENUM_TAG: &str = "v";
Compiler test flags, used to skip tests which cause crashes.
For core:
--skip atomic::atomic_access_bool --skip atomic::bool_and --skip atomic::bool_nand --skip cell::refcell_ref_coercion --skip future::test_join --skip hash::test_writer_hasher --skip manually_drop::smoke
--skip num::i128::tests::test_saturating_abs --skip num::i128::tests::test_saturating_neg --skip ptr::ptr_metadata --skip ptr::test_ptr_metadata_in_const --skip result::result_try_trait_v2_branch --skip simd::testing
--skip slice::take_in_bounds_max_range_from --skip slice::take_in_bounds_max_range_to --skip slice::take_mut_in_bounds_max_range_from --skip slice::take_mut_in_bounds_max_range_to --skip slice::take_mut_oob_max_range_to_inclusive
--skip slice::take_oob_max_range_to_inclusive --skip cell::refcell_unsized --skip iter::adapters::array_chunks::test_iterator_array_chunks_count --skip num::flt2dec::strategy::dragon::test_to_exact_exp_str
--skip num::flt2dec::strategy::dragon::test_to_exact_fixed_str --skip num::flt2dec::strategy::dragon::test_to_shortest_exp_str --skip num::flt2dec::strategy::dragon::test_to_shortest_str
--skip num::flt2dec::strategy::grisu::test_to_exact_exp_str --skip num::flt2dec::strategy::grisu::test_to_exact_fixed_str --skip num::flt2dec::strategy::grisu::test_to_shortest_exp_str
--skip num::flt2dec::strategy::grisu::test_to_shortest_str --skip num::i128::tests::test_leading_trailing_ones --skip num::i32::tests::test_leading_trailing_ones --skip num::i64::tests::test_leading_trailing_ones
--skip num::u128::tests::test_leading_trailing_ones --skip num::u128::tests::test_reverse_bits --skip num::u128::tests::test_reverse_bits --skip num::u32::tests::test_leading_trailing_ones --skip num::u32::tests::test_reverse_bits
--skip num::u64::tests::test_leading_trailing_ones --skip num::u64::tests::test_reverse_bits --skip slice::select_nth_unstable --skip slice::test_array_windows_count --skip slice::test_binary_search --skip slice::test_windows_count
--skip atomic::atomic_access_bool --skip atomic::bool_and --skip atomic::bool_nand --skip cell::refcell_ref_coercion --skip future::test_join --skip hash::test_writer_hasher --skip manually_drop::smoke --skip num::i128::tests::test_saturating_abs --skip num::i128::tests::test_saturating_neg --skip ptr::ptr_metadata --skip ptr::test_ptr_metadata_in_const --skip result::result_try_trait_v2_branch --skip simd::testing --skip slice::take_in_bounds_max_range_from --skip slice::take_in_bounds_max_range_to --skip slice::take_mut_in_bounds_max_range_from --skip slice::take_mut_in_bounds_max_range_to --skip slice::take_mut_oob_max_range_to_inclusive --skip slice::take_oob_max_range_to_inclusive --skip cell::refcell_unsized --skip iter::adapters::array_chunks::test_iterator_array_chunks_count --skip num::flt2dec::strategy::dragon::test_to_exact_exp_str --skip num::flt2dec::strategy::dragon::test_to_exact_fixed_str --skip num::flt2dec::strategy::dragon::test_to_shortest_exp_str --skip num::flt2dec::strategy::dragon::test_to_shortest_str --skip num::flt2dec::strategy::grisu::test_to_exact_exp_str --skip num::flt2dec::strategy::grisu::test_to_exact_fixed_str --skip num::flt2dec::strategy::grisu::test_to_shortest_exp_str --skip num::flt2dec::strategy::grisu::test_to_shortest_str --skip num::i128::tests::test_leading_trailing_ones --skip num::i32::tests::test_leading_trailing_ones --skip num::i64::tests::test_leading_trailing_ones --skip num::u128::tests::test_leading_trailing_ones --skip num::u128::tests::test_reverse_bits --skip num::u128::tests::test_reverse_bits --skip num::u32::tests::test_leading_trailing_ones --skip num::u32::tests::test_reverse_bits --skip num::u64::tests::test_leading_trailing_ones --skip num::u64::tests::test_reverse_bits --skip slice::select_nth_unstable --skip slice::test_array_windows_count --skip slice::test_binary_search --skip slice::test_windows_count
For alloc:
--test-threads 1
*/
Expand Down

0 comments on commit fc62557

Please sign in to comment.