Add another fails_with test
This commit is contained in:
parent
00d0de5b24
commit
a55f66839a
@ -49,8 +49,8 @@ class FailsWithTests < Test::Unit::TestCase
|
||||
|
||||
def test_non_apple_gcc_version
|
||||
fails_with(:gcc => '4.8')
|
||||
cc = build_cc("gcc-4.8", nil, "4.8.1")
|
||||
assert_fails_with cc
|
||||
assert_fails_with build_cc("gcc-4.8", "4.8")
|
||||
assert_fails_with build_cc("gcc-4.8", "4.8.1")
|
||||
end
|
||||
|
||||
def test_multiple_failures
|
||||
@ -63,4 +63,11 @@ class FailsWithTests < Test::Unit::TestCase
|
||||
assert_fails_with clang
|
||||
assert_does_not_fail_with gcc
|
||||
end
|
||||
|
||||
def test_fails_with_version
|
||||
fails_with(:gcc => '4.8') { version '4.8.1' }
|
||||
assert_fails_with build_cc("gcc-4.8", "4.8")
|
||||
assert_fails_with build_cc("gcc-4.8", "4.8.1")
|
||||
assert_does_not_fail_with build_cc("gcc-4.8", "4.8.2")
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user