]> granicus.if.org Git - python/commitdiff
Issue #25122: add debug traces to test_eintr.test_open()
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 16 Sep 2015 07:23:28 +0000 (09:23 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 16 Sep 2015 07:23:28 +0000 (09:23 +0200)
Lib/test/eintrdata/eintr_tester.py

index 24e809a2a44a193a54e54243a9447e29b5bc214e..c3c08fe8af33f699f96e46a388ee959471458c04 100644 (file)
@@ -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)