mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Merge pull request #7210 from roc-lang/ignore_debug_exceptions_in_all_contexts
ignore test debug exceptions in all contexts
This commit is contained in:
commit
db017de0c0
3 changed files with 17 additions and 4 deletions
|
@ -24,4 +24,4 @@ jobs:
|
||||||
|
|
||||||
# for skipped tests; see #6946, #6947
|
# for skipped tests; see #6946, #6947
|
||||||
- name: cargo test without --release
|
- name: cargo test without --release
|
||||||
run: nix develop -c sh -c 'export ROC_CHECK_MONO_IR=1 && cargo test -- --skip tests/exhaustive/match_on_result_with_uninhabited_error_destructuring_in_lambda_syntax.txt --skip tests::identity_lambda --skip tests::issue_2300 --skip tests::issue_2582_specialize_result_value --skip tests::sum_lambda'
|
run: nix develop -c sh -c 'export ROC_CHECK_MONO_IR=1 && cargo test'
|
||||||
|
|
|
@ -77,6 +77,14 @@ fn collect_uitest_files() -> io::Result<Vec<PathBuf>> {
|
||||||
}
|
}
|
||||||
|
|
||||||
if path.extension() == Some(OsStr::new("txt")) {
|
if path.extension() == Some(OsStr::new("txt")) {
|
||||||
|
// see issue 6947
|
||||||
|
if cfg!(debug_assertions)
|
||||||
|
&& path.to_string_lossy().contains(
|
||||||
|
"match_on_result_with_uninhabited_error_destructuring_in_lambda_syntax",
|
||||||
|
)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
tests.push(path);
|
tests.push(path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -624,12 +624,15 @@ fn list_of_3_field_records() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// not(debug_assertions) because of issue #6946
|
||||||
|
#[cfg(not(debug_assertions))]
|
||||||
#[test]
|
#[test]
|
||||||
fn identity_lambda() {
|
fn identity_lambda() {
|
||||||
expect_success("\\x -> x", "<function> : a -> a");
|
expect_success("\\x -> x", "<function> : a -> a");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(feature = "wasm"))]
|
// not(debug_assertions) because of issue #6946
|
||||||
|
#[cfg(all(not(feature = "wasm"), not(debug_assertions)))]
|
||||||
#[test]
|
#[test]
|
||||||
fn sum_lambda() {
|
fn sum_lambda() {
|
||||||
expect_success("\\x, y -> x + y", "<function> : Num a, Num a -> Num a");
|
expect_success("\\x, y -> x + y", "<function> : Num a, Num a -> Num a");
|
||||||
|
@ -1049,7 +1052,8 @@ fn large_nullable_wrapped_tag_union() {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(feature = "wasm"))]
|
// not(debug_assertions) because of issue #6946
|
||||||
|
#[cfg(all(not(feature = "wasm"), not(debug_assertions)))]
|
||||||
#[test]
|
#[test]
|
||||||
fn issue_2300() {
|
fn issue_2300() {
|
||||||
expect_success(
|
expect_success(
|
||||||
|
@ -1330,7 +1334,8 @@ fn box_box_type_alias() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(feature = "wasm"))]
|
// not(debug_assertions) because of issue #6946
|
||||||
|
#[cfg(all(not(feature = "wasm"), not(debug_assertions)))]
|
||||||
fn issue_2582_specialize_result_value() {
|
fn issue_2582_specialize_result_value() {
|
||||||
expect_success(
|
expect_success(
|
||||||
r#"\x, list -> if x > 0 then List.first list else Ok """#,
|
r#"\x, list -> if x > 0 then List.first list else Ok """#,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue