1 """Test program for processes."""
5 test_file_match = "process_test.log.*"
6 test_file = "process_test.log.%d" % os.getpid()
9 f = open(test_file, 'wb')
12 bytes = sys.stdin.read(4)
13 f.write("one: %r\n" % bytes)
15 sys.stdout.write(bytes)
17 os.close(sys.stdout.fileno())
19 # and a one, and a two, and a...
20 bytes = sys.stdin.read(4)
21 f.write("two: %r\n" % bytes)
24 sys.stderr.write(bytes)
26 os.close(sys.stderr.fileno())
29 bytes = sys.stdin.read(4)
30 f.write("three: %r\n" % bytes)
32 # exit with status code 23
36 if __name__ == '__main__':