Logo
Explore Help
Register Sign In
tasiaiso/tildefriends
1
0
Fork 0
You've already forked tildefriends
forked from cory/tildefriends
Code Issues Pull Requests Releases Wiki Activity
tildefriends/tests/03-child

20 lines
340 B
Plaintext
Raw Normal View History

sandboxos => tildefriends git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3157 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-03-12 18:50:43 +00:00
#!/bin/bash
cat > test.js << EOF
var task = new Task();
task.onExit = function() {
print("child exited");
};
task.activate();
Now child processes have no ability to open files. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3206 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-04-16 21:30:52 +00:00
task.execute({name: "child.js", source: File.readFile("child.js")}).then(function() {
sandboxos => tildefriends git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3157 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-03-12 18:50:43 +00:00
print("child started");
});
EOF
cat > child.js << EOF
print("I am the child process.");
exit(0);
EOF
I think this fixes tests, and makes them runnable from continuous integration. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3161 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-03-13 13:37:58 +00:00
$TILDEFRIENDS test.js
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 26ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API