Abort on glib assertion errors.

This commit is contained in:
Nikolaus Rath 2017-07-08 00:22:02 +02:00
parent 73e4cf79b0
commit 6cc86fc0bd
1 changed files with 7 additions and 1 deletions

View File

@ -72,8 +72,14 @@ def test_sshfs(tmpdir, debug, cache_timeout, sync_rd, capfd):
# FUSE Cache
cmdline += [ '-o', 'entry_timeout=0',
'-o', 'attr_timeout=0' ]
mount_process = subprocess.Popen(cmdline)
new_env = dict(os.environ) # copy, don't modify
# Abort on warnings from glib
new_env['G_DEBUG'] = 'fatal-warnings'
mount_process = subprocess.Popen(cmdline, env=new_env)
try:
wait_for_mount(mount_process, mnt_dir)