better crash diagnostics in ffmpeg test
This commit is contained in:
parent
6ab5c2faa1
commit
cc53269231
2 changed files with 9 additions and 1 deletions
|
@ -41,7 +41,10 @@ def main():
|
|||
try:
|
||||
test_path = os.path.join(SOURCE_ROOT, 'spec', 'fixtures',
|
||||
'no-proprietary-codecs.js')
|
||||
subprocess.check_call([electron, test_path] + sys.argv[1:])
|
||||
env = dict(os.environ)
|
||||
env['ELECTRON_ENABLE_STACK_DUMPING'] = 'true'
|
||||
env['ELECTRON_ENABLE_LOGGING'] = 'true'
|
||||
subprocess.check_call([electron, test_path] + sys.argv[1:], env=env)
|
||||
except subprocess.CalledProcessError as e:
|
||||
returncode = e.returncode
|
||||
except KeyboardInterrupt:
|
||||
|
|
5
spec/fixtures/no-proprietary-codecs.js
vendored
5
spec/fixtures/no-proprietary-codecs.js
vendored
|
@ -17,6 +17,11 @@ app.once('ready', () => {
|
|||
show: false
|
||||
})
|
||||
|
||||
window.webContents.on('crashed', (event, killed) => {
|
||||
console.log(`WebContents crashed (killed=${killed})`)
|
||||
app.exit(1)
|
||||
})
|
||||
|
||||
window.loadFile(path.resolve(__dirname, 'asar', 'video.asar', 'index.html'))
|
||||
|
||||
ipcMain.on('asar-video', (event, message, error) => {
|
||||
|
|
Loading…
Reference in a new issue