test: fix stack overflow

This commit is contained in:
Shunsuke Shibayama 2023-02-24 16:12:04 +09:00
parent 80249587eb
commit 7cf537b37e
3 changed files with 3 additions and 3 deletions

View file

@ -22,9 +22,8 @@ jobs:
run: | run: |
rustup update stable rustup update stable
cargo install --debug --path . cargo install --debug --path .
# Removed because it caused a segmentation fault and would not stop executing. Testing should be done locally.
- name: Run tests - name: Run tests
run: cargo test --verbose run: cargo test --verbose --features large_thread
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
command: clippy command: clippy

View file

@ -9,7 +9,7 @@ repos:
pass_filenames: false pass_filenames: false
- id: cargo-test - id: cargo-test
name: Cargo test name: Cargo test
entry: cargo test entry: cargo test --features large_thread
language: system language: system
pass_filenames: false pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks

View file

@ -32,6 +32,7 @@ els = { git = "https://github.com/erg-lang/erg", branch = "main", features = ["p
[features] [features]
debug = ["erg_compiler/debug", "erg_common/debug", "py2erg/debug"] debug = ["erg_compiler/debug", "erg_common/debug", "py2erg/debug"]
large_thread = ["erg_compiler/large_thread", "erg_common/large_thread", "els/large_thread"]
[dependencies] [dependencies]
erg_compiler = { workspace = true } erg_compiler = { workspace = true }