summaryrefslogtreecommitdiff
path: root/js/process_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/process_test.ts')
-rw-r--r--js/process_test.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/process_test.ts b/js/process_test.ts
index b442f0092..051841ffe 100644
--- a/js/process_test.ts
+++ b/js/process_test.ts
@@ -187,6 +187,17 @@ testPerm({ run: true }, async function runOutput() {
p.close();
});
+testPerm({ run: true }, async function runStderrOutput() {
+ const p = run({
+ args: ["python", "-c", "import sys; sys.stderr.write('error')"],
+ stderr: "piped"
+ });
+ const error = await p.stderrOutput();
+ const s = new TextDecoder().decode(error);
+ assertEquals(s, "error");
+ p.close();
+});
+
testPerm({ run: true }, async function runEnv() {
const p = run({
args: [