Files
core
data
deps
packages
src
tests
01-nop
02-valgrind
03-child
04-promise
05-promise-remote-throw
07-promise-remote-reject
08-database
09-this
tools
COPYING
LICENSE
README.md
SConstruct
tildefriends/tests/03-child

20 lines
297 B
Plaintext
Raw Normal View History

#!/bin/bash
cat > test.js << EOF
var task = new Task();
task.onExit = function() {
print("child exited");
};
task.activate();
task.execute("child.js").then(function() {
print("child started");
});
EOF
cat > child.js << EOF
print("I am the child process.");
exit(0);
EOF
$TILDEFRIENDS test.js