Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added an interpreter spec for check crystal i is running on linux. #14192

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions spec/compiler/interpreter_spec.cr
@@ -1 +1,11 @@
require "./interpreter/*"

describe "run interpreter" do
it "should running interpreter sucessful on linux" do
{% if flag?(:linux) %}

Check failure on line 5 in spec/compiler/interpreter_spec.cr

View workflow job for this annotation

GitHub Actions / LLVM 13.0.0

got: false

Check failure on line 5 in spec/compiler/interpreter_spec.cr

View workflow job for this annotation

GitHub Actions / LLVM 14.0.0

got: false

Check failure on line 5 in spec/compiler/interpreter_spec.cr

View workflow job for this annotation

GitHub Actions / LLVM 15.0.6

got: false

Check failure on line 5 in spec/compiler/interpreter_spec.cr

View workflow job for this annotation

GitHub Actions / LLVM 16.0.3

got: false

Check failure on line 5 in spec/compiler/interpreter_spec.cr

View workflow job for this annotation

GitHub Actions / LLVM 17.0.6

got: false
status_code = system("crystal i &>/dev/null <<< 'puts 1'")

status_code.should be_true
{% end %}
end
end