From 7cf537b37e54e27705b38550585e49df6f46c1f3 Mon Sep 17 00:00:00 2001 From: Shunsuke Shibayama Date: Fri, 24 Feb 2023 16:12:04 +0900 Subject: [PATCH] test: fix stack overflow --- .github/workflows/rust.yml | 3 +-- .pre-commit-config.yaml | 2 +- Cargo.toml | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 24aad38..ff9054c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,9 +22,8 @@ jobs: run: | rustup update stable cargo install --debug --path . - # Removed because it caused a segmentation fault and would not stop executing. Testing should be done locally. - name: Run tests - run: cargo test --verbose + run: cargo test --verbose --features large_thread - uses: actions-rs/cargo@v1 with: command: clippy diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a40b86b..e97bed0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: pass_filenames: false - id: cargo-test name: Cargo test - entry: cargo test + entry: cargo test --features large_thread language: system pass_filenames: false - repo: https://github.com/pre-commit/pre-commit-hooks diff --git a/Cargo.toml b/Cargo.toml index 6c27d69..7e3541f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,6 +32,7 @@ els = { git = "https://github.com/erg-lang/erg", branch = "main", features = ["p [features] debug = ["erg_compiler/debug", "erg_common/debug", "py2erg/debug"] +large_thread = ["erg_compiler/large_thread", "erg_common/large_thread", "els/large_thread"] [dependencies] erg_compiler = { workspace = true }