print '%s: %s' % (e.__class__, e) pdb.post_mortem(sys.exc_info()[2]) raise # parent process loop: spawn a child, wait for the child to finish, # print a message, and restart #unixcheckpoint.restartable_point(auto='run') from rpython.jit.codewriter.codewriter import CodeWriter CodeWriter.debug = True run_child(globals(), locals()) import pixie.vm.rt as rt rt.init() #stacklet.global_state = stacklet.GlobalState() def target(*args): import pixie.vm.rt as rt driver = args[0] driver.exe_name = "pixie-vm" rt.__config__ = args[0].config print "ARG INFO: ", args return entry_point, None import rpython.config.translationoption
import pixie.vm.rt as rt from pixie.vm.primitives import nil rt.init() def test_hashmap_create(): acc = rt.hashmap(rt.wrap(1), rt.wrap(2)) val = rt._val_at(acc, rt.wrap(1), nil) assert val.int_val() == 2