diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/fs.py | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1391,14 +1391,21 @@ def test(binary, quic=False): assert refused.returncode == 1, refused assert b'bad character in file name' in refused.stderr, refused.stderr assert serials() == before, (serials(), before) - # A name with a newline is said in words, not an error's name. - for word, said in (('two\nlines.txt', b'a file name is one line'),): + # A pane address the session has not is refused in words, exit + # 1, no pane made for a file of that name; one it has is looked + # at. A name with a newline is said in words, not an error name. + for word, said in (('@p999:1', b'pardes: @p999:1: this session has no such pane'), + ('two\nlines.txt', b'a file name is one line')): refused = subprocess.run([binary, word], cwd=root, env=env, stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=10) assert refused.returncode == 1, refused assert said in refused.stderr, refused.stderr assert b'NotOneLine' not in refused.stderr and b'NoSuchPane' not in refused.stderr assert serials() == before, (serials(), before) + looked = subprocess.run([binary, '@p1:1'], cwd=root, env=env, + stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=10) + assert looked.returncode == 0, looked.stderr + assert serials() == before, (serials(), before) orphan = launch('--wait') assert orphan.poll() is None assert orphan.wait(timeout=5) == 1 |
