1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

should not check taint flag on rubyspec.

Now taint flag is obsolete and it is used fro shareaable flag.
So we should not check this flag.
This commit is contained in:
Koichi Sasada 2020-09-25 09:08:54 +09:00
parent c6c241e49c
commit fde136152e
Notes: git 2020-09-25 12:53:18 +09:00
3 changed files with 7 additions and 2 deletions

View file

@ -66,9 +66,9 @@ describe :rbasic, shared: true do
obj1, obj2 = @data.call
initial = @specs.get_flags(obj1)
@specs.get_flags(obj2).should == initial
@specs.set_flags(obj1, @taint | 1 << 14 | 1 << 16 | initial)
@specs.set_flags(obj1, 1 << 14 | 1 << 16 | initial)
@specs.copy_flags(obj2, obj1)
@specs.get_flags(obj2).should == @taint | 1 << 14 | 1 << 16 | initial
@specs.get_flags(obj2).should == 1 << 14 | 1 << 16 | initial
@specs.set_flags(obj1, initial)
@specs.copy_flags(obj2, obj1)
@specs.get_flags(obj2).should == initial