Skip to content

Commit

Permalink
Never mind identifying loopback pipes
Browse files Browse the repository at this point in the history
This would be nice to have, but it's a bit non-obvious to implement and
it's about time to merge to master.

Let's just do it at a later date if it turns out to be needed.
  • Loading branch information
walles committed Aug 10, 2017
1 parent af32cba commit a1cb7ca
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests/px_ipc_map_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,17 +228,6 @@ def test_stdfds_ipc_and_network():
assert ipc_map.fds[2] == '[PIPE] -> cupsd(1002) (->0x3922f6866312c495)'


def test_stdfds_pipe_to_self():
files = [
# Set up stderr to pipe to another fd of our own process. Pipes are real-world OS X ones.
testutils.create_file("PIPE", "->0x3922f6866312c495", "0x3922f6866312cb55", 1234, fd=2),
testutils.create_file("PIPE", "->0x3922f6866312cb55", "0x3922f6866312c495", 1234, fd=7),
]

ipc_map = testutils.create_ipc_map(1234, files)
assert ipc_map.fds[2] == '[PIPE] -> <myself, fd=7> (->0x3922f6866312c495)'


def test_stdfds_pipe_to_unknown_not_root():
files = [
# Set up stderr as an unconnected pipe. The pipes is a real-world OS X one.
Expand Down

0 comments on commit a1cb7ca

Please sign in to comment.