-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2377 from natalie-lang/better-asan-test
Fix ASAN tests
- Loading branch information
Showing
2 changed files
with
38 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Prior to running this test, you should build Natalie with: | ||
# | ||
# rake clean build_asan | ||
# ruby test/asan_test.rb | ||
|
||
require 'minitest/spec' | ||
require 'minitest/autorun' | ||
require_relative 'support/compare_rubies' | ||
|
||
describe 'ASAN tests' do | ||
include CompareRubies | ||
|
||
Dir.chdir File.expand_path('..', __dir__) | ||
|
||
describe 'examples/hello.rb' do | ||
it 'it runs without warnings' do | ||
out = run_nat('examples/hello.rb') | ||
expect(out).wont_match(/ASan/) | ||
end | ||
end | ||
|
||
describe 'examples/fib.rb' do | ||
it 'it runs without warnings' do | ||
out = run_nat('examples/fib.rb') | ||
expect(out).wont_match(/ASan/) | ||
end | ||
end | ||
end |