Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Unified Diff: ports/devenv/tests/devenv_small_test.js

Issue 1563073002: Re-enable io2014 + add cds2014 tests for devenv. (Closed) Base URL: https://chromium.googlesource.com/webports.git@master
Patch Set: fix Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ports/devenv/tests/demo2014_test.js ('k') | ports/devenv/tests/io2014_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « ports/devenv/tests/demo2014_test.js ('k') | ports/devenv/tests/io2014_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698