Commits

fperrad_ committed 8d0af8d

refactor with runtests()

Comments (0)

Files changed (1)

     .param pmc kv :slurpy :named
     run_step('build', kv :flat :named)
 
-    load_bytecode 'TAP/Harness.pbc'
-    .local pmc opts, files, harness, aggregate
-    opts = new 'Hash'
-    opts['exec'] = 'ruby'
-    files = split ' ', 't/test.rb'
-    harness = new ['TAP';'Harness']
-    harness.'process_args'(opts)
-    aggregate = harness.'runtests'(files)
-    $I0 = aggregate.'has_errors'()
-    unless $I0 goto L1
-    die "test fails"
-  L1:
+    runtests('t/test.rb', 'ruby' :named('exec'))
 .end
 
 # Local Variables: