Lines Matching refs:system
29 // only does non-trivial work on Unix since os.system() is not currently
56 if (this.os && os.system) {
61 os.system("ls", [TEST_DIR]);
62 os.system("rm", ["-r", TEST_DIR]);
68 os.system('ls', [TEST_DIR]);
74 os.system('ls', [TEST_DIR + '/dir/foo']);
76 assertThrows("os.system('ls', [TEST_DIR + '/dir/bar']);", "dir not there");
79 os.system("ls", [TEST_DIR + "/dir2/foo"]);
85 os.system("ls", [TEST_DIR + "/dir3"]);
87 os.system("sh", ["-c", "echo foo > " + TEST_DIR + "/file1"]);
88 os.system("ls", [TEST_DIR + "/file1"]);
112 os.system("ls", [TEST_DIR + "/hest/fisk/ged"]);
115 var environment = os.system("printenv");
122 os.system("ls", ["/bin/sleep"]);
127 os.system("ls", ["/bin/echo"]);
132 assertThrows("os.system('sleep', ['2000'], 20);", "sleep 1");
135 assertThrows("os.system('sleep', ['2000'], -1, 20);", "sleep 2");
138 os.system('sleep', ['0.1'], -1, -1);
146 assertEquals("baz\n", os.system("echo", ["baz"]));
152 arg_error("os.system();");
161 arg_error("os.system('ls', [], -1, -1, -1);");
168 arg_error("os.system('ls', 'foo');");
169 arg_error("os.system('ls', 123);");
170 arg_error("os.system('ls', [], 'foo');");
171 arg_error("os.system('ls', [], -1, 'foo');");
175 str_error("os.system(e);");
176 str_error("os.system('ls', [e]);");
177 str_error("os.system('ls', ['.', e]);");
178 str_error("os.system('ls', [e, '.']);");
186 os.system("rm", ["-r", TEST_DIR]);