Test if stdin gets closed when starting QProcess
This commit is contained in:
parent
c47da15bb1
commit
75f8d2a1d1
7
tests/end2end/data/userscripts/test_stdinclose.py
Executable file
7
tests/end2end/data/userscripts/test_stdinclose.py
Executable 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')
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user