summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-09-16 07:23:28 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-09-16 07:23:28 (GMT)
commite41b4712fe884551aef7dd3b8852907dcc310a29 (patch)
treebd184431b3251c8d08b6fb8f94265c9d9ecc367e
parent1e0f8ecdd8a4fb1fa21f4da1a8849ffd42b966f2 (diff)
downloadcpython-e41b4712fe884551aef7dd3b8852907dcc310a29.zip
cpython-e41b4712fe884551aef7dd3b8852907dcc310a29.tar.gz
cpython-e41b4712fe884551aef7dd3b8852907dcc310a29.tar.bz2
Issue #25122: add debug traces to test_eintr.test_open()
-rw-r--r--Lib/test/eintrdata/eintr_tester.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/Lib/test/eintrdata/eintr_tester.py b/Lib/test/eintrdata/eintr_tester.py
index 24e809a..c3c08fe 100644
--- a/Lib/test/eintrdata/eintr_tester.py
+++ b/Lib/test/eintrdata/eintr_tester.py
@@ -326,12 +326,26 @@ class SocketEINTRTest(EINTRBaseTest):
'# let the parent block',
'time.sleep(sleep_time)',
'',
+ 'print("try to open %a fifo for reading, pid %s, ppid %s"'
+ ' % (path, os.getpid(), os.getppid()),'
+ ' flush=True)',
+ '',
do_open_close_reader,
+ '',
+ 'print("%a fifo opened for reading and closed, pid %s, ppid %s"'
+ ' % (path, os.getpid(), os.getppid()),'
+ ' flush=True)',
))
proc = self.subprocess(code)
with kill_on_error(proc):
+ print("try to open %a fifo for writing, pid %s"
+ % (filename, os.getpid()),
+ flush=True)
do_open_close_writer(filename)
+ print("%a fifo opened for writing and closed, pid %s"
+ % (filename, os.getpid()),
+ flush=True)
self.assertEqual(proc.wait(), 0)