perl11 / potion

_why the lucky stiff's little language (the official repo... until _why returns)

Home Page:http://groups.google.com/group/potion-lang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

test/tutorial/07_subclass.pn is failing on master

jgouly opened this issue · comments

https://travis-ci.org/perl11/potion/jobs/34828900
https://travis-ci.org/perl11/potion/jobs/34828901

Actually, it's not this test, but it seems 3 tests are failing, with clang. The latest gcc builds seem to be ok.

No idea why, but the DEBUG= environment variable plays a part here.
make test DEBUG= passes, but 'make test' fails.

$ DEBUG= ./bin/potion test/tutorial/07_subclass.pn
My name is nil and I'm a Constable.

vs

$ ./bin/potion test/tutorial/07_subclass.pn
Policeman

But the travis-ci fails for DEBUG=1 and DEBUG=0..

This has nothing to do with DEBUG either!

$ ./bin/potion test/tutorial/07_subclass.pn
Policeman

$ ./bin/potion test/tutorial/07_subclass.pn WILL_THIS_WORK
My name is nil and I'm a Constable.

$ MAKE_IT_WORK=1 ./s.pn otion test/tutorial/07_subclass
My name is nil and I'm a Constable.
$ ./bin/potion -V test/tutorial/07_subclass.pn &> broken.txt
$ WORKS=1 ./bin/potion -V test/tutorial/07_subclass.pn &> works.txt
$ diff works.txt broken.txt
6c6
< -- jit returned 0x1100ab000 (fixed=79960, actual=143928, reserved=262144, time=0ms 0x/0m/0i) --
---
> -- jit returned 0x1005c7000 (fixed=79936, actual=143528, reserved=262144, time=0ms 0x/0m/0i) --
108c108
< [25] msg      0 1
---
> [25] bind     0 1
119c119
< My name is nil and I'm a Constable.
---
> Policeman

So in the working version, a 'msg' instruction is used instead of 'bind'. Still no idea why that's happening though.

When I restarted my shell.. this disappeared. So I have no idea.