| Index: ports/devenv/tests/devenv_small_test.js
|
| diff --git a/ports/devenv/tests/devenv_small_test.js b/ports/devenv/tests/devenv_small_test.js
|
| index 35ae25e50e4459ec92fa8466b8474523bac602cc..55ba3f9b1eb4fe132fd08e13cc904038ddcc17d8 100644
|
| --- a/ports/devenv/tests/devenv_small_test.js
|
| +++ b/ports/devenv/tests/devenv_small_test.js
|
| @@ -50,6 +50,23 @@ TEST_F(DevEnvTest, 'testSheeBangSh', function() {
|
| });
|
| });
|
|
|
| +// Confirm that we can run a command, sleep, and kill it.
|
| +TEST_F(DevEnvTest, 'testSleepKill', function() {
|
| + var self = this;
|
| + var pid;
|
| + return Promise.resolve().then(function() {
|
| + return self.spawnCommand('bash -c "while [[ 1 == 1 ]]; do echo -n; done"');
|
| + }).then(function(msg) {
|
| + pid = msg.pid;
|
| + return chrometest.sleep(300);
|
| + }).then(function(msg) {
|
| + self.sigint();
|
| + return self.waitCommand(pid);
|
| + }).then(function(msg) {
|
| + ASSERT_EQ(128 + 9, msg.status, 'Expect kill status');
|
| + });
|
| +});
|
| +
|
| // Run a NaCl executable to make sure syscalls are working.
|
| TEST_F(DevEnvTest, 'testCTests', function() {
|
| var self = this;
|
|
|