dumping ground for random patches and texts
 help / color / mirror / Atom feed
* [PATCH] vm_core.h (rb_control_frame_t): remove "restrict" keyword
@ 2017-04-08 23:16 Eric Wong
  2017-04-08 23:19 ` rubyspec failures Eric Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Wong @ 2017-04-08 23:16 UTC (permalink / raw)
  To: spew

Ruby does not require C99, so I'm removing this until
a suitable compatibility macro can be implemented.

Otherwise, I can't compile under gcc 4.9.2-10 on Debian 8.
---
 vm_core.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vm_core.h b/vm_core.h
index abf3a0c1ec..ca792bb381 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -662,7 +662,7 @@ typedef struct rb_control_frame_struct {
     VALUE *sp;		/* cfp[1] */
     rb_iseq_t *iseq;	/* cfp[2] */
     VALUE self;			/* cfp[4] / block[0] */
-    VALUE *restrict ep, *restrict bp;	/* cfp[5] / block[1] */
+    VALUE *ep, *bp;	/* cfp[5] / block[1] */
     const void *block_code;     /* cfp[5] / block[2] */ /* iseq or ifunc */
 
 #if VM_DEBUG_BP_CHECK
-- 
EW


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* rubyspec failures
  2017-04-08 23:16 [PATCH] vm_core.h (rb_control_frame_t): remove "restrict" keyword Eric Wong
@ 2017-04-08 23:19 ` Eric Wong
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2017-04-08 23:19 UTC (permalink / raw)
  To: spew

./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems -r./x86_64-linux-fake ./spec/mspec/bin/mspec run -B ./spec/default.mspec 
$ DIR/miniruby -IDIR/lib -IDIR -IDIR/.ext/common DIR/tool/runruby.rb --archdir=DIR --extout=.ext -- DIR/spec/mspec/bin/mspec-run -B ./spec/default.mspec
ruby 2.5.0dev (2017-01-11 rtl 57306) [x86_64-linux]
..........................F.......F.......................................F...F......FF..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.........................................................................................................................................................................................................................................................................................................................................E.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

1)
Break inside a while loop with a value exits the loop and returns the value FAILED
Expected nil
 to equal 1

DIR/spec/rubyspec/language/break_spec.rb:173:in `block (3 levels) in <top (required)>'
DIR/spec/rubyspec/language/break_spec.rb:168:in `<top (required)>'

2)
Break inside a while loop with a splat exits the loop and makes the splat an Array FAILED
Expected nil
 to equal [1, 2]

DIR/spec/rubyspec/language/break_spec.rb:186:in `block (3 levels) in <top (required)>'
DIR/spec/rubyspec/language/break_spec.rb:168:in `<top (required)>'

3)
Break inside a while loop with a splat treats nil as an empty array FAILED
Expected nil
 to equal []

DIR/spec/rubyspec/language/break_spec.rb:190:in `block (3 levels) in <top (required)>'
DIR/spec/rubyspec/language/break_spec.rb:168:in `<top (required)>'

4)
Break inside a while loop with a splat preserves an array as is FAILED
Expected nil
 to equal []

DIR/spec/rubyspec/language/break_spec.rb:194:in `block (3 levels) in <top (required)>'
DIR/spec/rubyspec/language/break_spec.rb:168:in `<top (required)>'

5)
Break inside a while loop with a splat wraps a non-Array in an Array FAILED
Expected nil
 to equal [1]

DIR/spec/rubyspec/language/break_spec.rb:201:in `block (3 levels) in <top (required)>'
DIR/spec/rubyspec/language/break_spec.rb:168:in `<top (required)>'

6)
The value of an ensure expression, in no-exception scenarios, is the value of the last statement of the protected body FAILED
Expected 2
 to equal 1

DIR/spec/rubyspec/language/ensure_spec.rb:85:in `block (2 levels) in <top (required)>'
DIR/spec/rubyspec/language/ensure_spec.rb:77:in `<top (required)>'

7)
Safe navigator allows assignment methods FAILED
Expected 3
 to equal nil

DIR/spec/rubyspec/language/safe_navigator_spec.rb:64:in `block (3 levels) in <top (required)>'
DIR/spec/rubyspec/language/safe_navigator_spec.rb:4:in `block in <top (required)>'
DIR/spec/rubyspec/language/safe_navigator_spec.rb:3:in `<top (required)>'

8)
Safe navigator allows assignment operators FAILED
Expected 3
 to equal nil

DIR/spec/rubyspec/language/safe_navigator_spec.rb:82:in `block (3 levels) in <top (required)>'
DIR/spec/rubyspec/language/safe_navigator_spec.rb:4:in `block in <top (required)>'
DIR/spec/rubyspec/language/safe_navigator_spec.rb:3:in `<top (required)>'

9)
The super keyword when using keyword arguments when using splat arguments passes splat arguments and keyword arguments to the parent FAILED
Expected [["bar"], {}]
 to equal [["bar"], {:baz=>true}]

DIR/spec/rubyspec/language/super_spec.rb:278:in `block (4 levels) in <top (required)>'
DIR/spec/rubyspec/language/super_spec.rb:4:in `<top (required)>'

10)
The while expression stops running body if interrupted by break in a parenthesized element op-assign-or value FAILED
Expected false to be nil
DIR/spec/rubyspec/language/while_spec.rb:85:in `block (2 levels) in <top (required)>'
DIR/spec/rubyspec/language/while_spec.rb:12:in `<top (required)>'

11)
The while expression stops running body if interrupted by break in a begin ... end element op-assign-or value FAILED
Expected false to be nil
DIR/spec/rubyspec/language/while_spec.rb:97:in `block (2 levels) in <top (required)>'
DIR/spec/rubyspec/language/while_spec.rb:12:in `<top (required)>'

12)
The while expression stops running body if interrupted by break in a parenthesized element op-assign value FAILED
Expected [1, 2] to be nil
DIR/spec/rubyspec/language/while_spec.rb:108:in `block (2 levels) in <top (required)>'
DIR/spec/rubyspec/language/while_spec.rb:12:in `<top (required)>'

13)
The while expression stops running body if interrupted by break in a begin ... end element op-assign value FAILED
Expected [1, 2] to be nil
DIR/spec/rubyspec/language/while_spec.rb:121:in `block (2 levels) in <top (required)>'
DIR/spec/rubyspec/language/while_spec.rb:12:in `<top (required)>'

14)
The while expression stops running body if interrupted by break in a parenthesized attribute op-assign-or value FAILED
Expected false to be nil
DIR/spec/rubyspec/language/while_spec.rb:136:in `block (2 levels) in <top (required)>'
DIR/spec/rubyspec/language/while_spec.rb:12:in `<top (required)>'

15)
The while expression stops running body if interrupted by break in a begin ... end attribute op-assign-or value FAILED
Expected false to be nil
DIR/spec/rubyspec/language/while_spec.rb:151:in `block (2 levels) in <top (required)>'
DIR/spec/rubyspec/language/while_spec.rb:12:in `<top (required)>'

16)
The while expression stops running body if interrupted by break in a parenthesized attribute op-assign-or value FAILED
Expected #<MockProxy:0x0055d294a856a8 @multiple_returns=nil, @returning=nil, @raising=nil, @yielding=[], @arguments=:any_args, @type=:mock, @count=[:exactly, 0]>
to be nil
DIR/spec/rubyspec/language/while_spec.rb:165:in `block (2 levels) in <top (required)>'
DIR/spec/rubyspec/language/while_spec.rb:12:in `<top (required)>'

17)
The while expression stops running body if interrupted by break in a begin ... end attribute op-assign-or value FAILED
Expected #<MockProxy:0x0055d294a76270 @multiple_returns=nil, @returning=nil, @raising=nil, @yielding=[], @arguments=:any_args, @type=:mock, @count=[:exactly, 0]>
to be nil
DIR/spec/rubyspec/language/while_spec.rb:180:in `block (2 levels) in <top (required)>'
DIR/spec/rubyspec/language/while_spec.rb:12:in `<top (required)>'

18)
The yield call taking a single argument yielding to a lambda should not destructure an Array into multiple arguments FAILED
Expected ArgumentError but no exception was raised ([1, 2] was returned)
DIR/spec/rubyspec/language/yield_spec.rb:74:in `block (5 levels) in <top (required)>'
DIR/spec/rubyspec/language/yield_spec.rb:9:in `<top (required)>'

19)
Kernel#warn writes an array in a line FAILED
Expected:
  $stderr: /line 1.*line 2/
      got:
  $stderr: "line 1\nline 2\n"

DIR/spec/rubyspec/core/kernel/warn_spec.rb:69:in `block (3 levels) in <top (required)>'
DIR/spec/rubyspec/core/kernel/warn_spec.rb:4:in `<top (required)>'

20)
Random.urandom returns a String ERROR
NoMethodError: undefined method `urandom' for Random:Class
DIR/spec/rubyspec/core/random/shared/urandom.rb:3:in `block (2 levels) in <top (required)>'
DIR/spec/rubyspec/core/random/raw_seed_spec.rb:6:in `block in <top (required)>'
DIR/spec/rubyspec/core/random/raw_seed_spec.rb:5:in `<top (required)>'

21)
Random.urandom returns a String of the length given as argument ERROR
NoMethodError: undefined method `urandom' for Random:Class
DIR/spec/rubyspec/core/random/shared/urandom.rb:7:in `block (2 levels) in <top (required)>'
DIR/spec/rubyspec/core/random/raw_seed_spec.rb:6:in `block in <top (required)>'
DIR/spec/rubyspec/core/random/raw_seed_spec.rb:5:in `<top (required)>'

22)
Random.urandom raises an ArgumentError on a negative size ERROR
NoMethodError: undefined method `urandom' for Random:Class
DIR/spec/rubyspec/core/random/shared/urandom.rb:12:in `block (3 levels) in <top (required)>'
DIR/spec/rubyspec/core/random/shared/urandom.rb:11:in `block (2 levels) in <top (required)>'
DIR/spec/rubyspec/core/random/raw_seed_spec.rb:6:in `block in <top (required)>'
DIR/spec/rubyspec/core/random/raw_seed_spec.rb:5:in `<top (required)>'

23)
Random.urandom returns an ASCII-8BIT String ERROR
NoMethodError: undefined method `urandom' for Random:Class
DIR/spec/rubyspec/core/random/shared/urandom.rb:17:in `block (2 levels) in <top (required)>'
DIR/spec/rubyspec/core/random/raw_seed_spec.rb:6:in `block in <top (required)>'
DIR/spec/rubyspec/core/random/raw_seed_spec.rb:5:in `<top (required)>'

24)
Random.urandom returns a random binary String ERROR
NoMethodError: undefined method `urandom' for Random:Class
DIR/spec/rubyspec/core/random/shared/urandom.rb:21:in `block (2 levels) in <top (required)>'
DIR/spec/rubyspec/core/random/raw_seed_spec.rb:6:in `block in <top (required)>'
DIR/spec/rubyspec/core/random/raw_seed_spec.rb:5:in `<top (required)>'

Finished in 158.652248 seconds

3568 files, 25711 examples, 196533 expectations, 19 failures, 5 errors, 0 tagged
uncommon.mk:665: recipe for target 'test-rubyspec' failed
make: *** [test-rubyspec] Error 1

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-08 23:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-08 23:16 [PATCH] vm_core.h (rb_control_frame_t): remove "restrict" keyword Eric Wong
2017-04-08 23:19 ` rubyspec failures Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).