1 var test = require("tap").test
2 var npm = require.resolve("../../bin/npm-cli.js")
3 var node = process.execPath
4 var spawn = require("child_process").spawn
5 var path = require("path")
6 var pkg = path.resolve(__dirname, "lifecycle-signal")
8 test("lifecycle signal abort", function (t) {
9 var child = spawn(node, [npm, "install"], {
12 child.on("close", function (code, signal) {
14 t.equal(signal, "SIGSEGV")