test cases appear to be running again
This commit is contained in:
parent
55ca576a43
commit
f39b192fee
|
@ -273,9 +273,7 @@ MACHINE.modules[~s] =
|
|||
}
|
||||
plt.runtime.setReadyTrue();
|
||||
},
|
||||
function(err) {
|
||||
alert(err.message)
|
||||
},
|
||||
FAIL,
|
||||
PARAMS);
|
||||
});\n"
|
||||
(format "~a" (source-name src)))
|
||||
|
@ -289,8 +287,11 @@ MACHINE.modules[~s] =
|
|||
|
||||
|
||||
(define (on-last-src)
|
||||
(fprintf op "plt.runtime.setReadyTrue();")
|
||||
(fprintf op "SUCCESS();"))
|
||||
(fprintf op "plt.runtime.ready(
|
||||
function() {
|
||||
plt.runtime.setReadyTrue();
|
||||
SUCCESS();
|
||||
});"))
|
||||
|
||||
|
||||
(define packaging-configuration
|
||||
|
|
|
@ -585,7 +585,7 @@
|
|||
// setReadyTrue is called.
|
||||
var ready, setReadyTrue, setReadyFalse;
|
||||
(function() {
|
||||
var runtimeIsReady = false;
|
||||
var runtimeIsReady = true;
|
||||
var readyWaiters = [];
|
||||
var notifyWaiter = function(w) {
|
||||
w();
|
||||
|
|
|
@ -42,8 +42,12 @@ return (function(succ, fail, params) {
|
|||
}
|
||||
};
|
||||
return innerInvoke(machine,
|
||||
function() { plt.runtime.invokeMains(machine, succ, fail); },
|
||||
function(MACHINE, e) { fail(e); },
|
||||
function() {
|
||||
plt.runtime.invokeMains(machine, succ, fail);
|
||||
},
|
||||
function(MACHINE, e) {
|
||||
return fail(e);
|
||||
},
|
||||
myParams);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -26,11 +26,12 @@
|
|||
|
||||
(fprintf op #<<EOF
|
||||
return (function(succ, fail, params) {
|
||||
var myParams = { currentDisplayer: function(MACHINE, v) { params.currentDisplayer(v); }};
|
||||
return innerInvoke(new plt.runtime.Machine(),
|
||||
var machine = new plt.runtime.Machine();
|
||||
machine.params.currentDisplayer =
|
||||
function(MACHINE, v) { params.currentDisplayer(v); };
|
||||
return innerInvoke(machine,
|
||||
succ,
|
||||
function(MACHINE, exn) { fail(exn); },
|
||||
myParams);
|
||||
function(MACHINE, exn) { return fail(exn); });
|
||||
});
|
||||
});
|
||||
EOF
|
||||
|
|
Loading…
Reference in New Issue
Block a user