Test if stdin gets closed when starting QProcess

This commit is contained in:
Fritz Reichwald 2017-04-12 06:52:26 +02:00
parent c47da15bb1
commit 75f8d2a1d1
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#!/usr/bin/python3
import sys
import os
sys.stdin.read()
with open(os.environ['QUTE_FIFO'], 'wb') as fifo:
fifo.write(b':message-info "stdin closed"\n')

View File

@ -55,3 +55,8 @@ Feature: :spawn
Then the following tabs should be open:
- about:blank
- about:blank (active)
Scenario: Running :spawn with userscript that expects the stdin getting closed
When I open about:blank
And I run :spawn -u (testdata)/userscripts/test_stdinclose.py
Then "stdin closed" should be logged