FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node/test/mjsunit/test-process-kill.js at debugger · bionicpill/node · GitHub
bionicpill
node
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node
/
test
/
mjsunit
/
test-process-kill.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (10 loc) · 418 Bytes
Breadcrumbs
node
/
test
/
mjsunit
/
test-process-kill.js
Copy path
File metadata and controls
15 lines (10 loc) · 418 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
process
.
mixin
(
require
(
"./common"
)
)
;
var
exit_status
=
-
1
;
var
cat
=
process
.
createChildProcess
(
"cat"
)
;
cat
.
addListener
(
"output"
,
function
(
chunk
)
{
assertEquals
(
null
,
chunk
)
;
}
)
;
cat
.
addListener
(
"error"
,
function
(
chunk
)
{
assertEquals
(
null
,
chunk
)
;
}
)
;
cat
.
addListener
(
"exit"
,
function
(
status
)
{
exit_status
=
status
;
}
)
;
cat
.
kill
(
)
;
process
.
addListener
(
"exit"
,
function
(
)
{
assertTrue
(
exit_status
>
0
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL