Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: parrot/PACT
base: master
...
head fork: parrot/PACT
compare: segfault
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 3 additions and 23 deletions.
  1. +3 −23 t/00-sanity.t
View
26 t/00-sanity.t
@@ -1,39 +1,19 @@
#!winxed
-class PACT.Packfile;
-class PACT.Packfile.Decompile;
-
function main[main]() {
+ // Segfault in IMCC
load_bytecode('rosella/core.pbc');
- Rosella.initialize_rosella('test');
- Rosella.Test.test(class SanityTest);
+ (new SanityTest).test_imcc();
}
class SanityTest {
function test_imcc() {
- var assert = self.assert;
-
var imcc = compreg('PIR');
- assert.defined(imcc, 'IMCC exists');
-
var view = imcc.compile(<<:
-.sub 'test_imcc_1'
+.sub 'foo'
.end
:>>
);
- assert.defined(view);
- assert.instance_of(view, 'PackfileView');
-
- var packfile = new 'Packfile'(view);
- assert.instance_of(packfile, 'Packfile');
- }
-
- function test_loading() {
- load_bytecode('pact/packfile.pbc');
- assert.not_null(class PACT.Packfile, 'found Packfile');
-
- load_bytecode('pact/packfile/decompile.pbc');
- assert.not_null(class PACT.Packfile.Decompile, 'found Decompile');
}
}

No commit comments for this range

Something went wrong with that request. Please try again.