Logo
Explore Help
Register Sign In
cory/tildefriends
5
6
Fork 2
You've already forked tildefriends
Code Issues 34 Pull Requests Actions Releases 32 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: 18ms 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