For blocking read test, use a pipe rather than stdin ... in case the tests

are being run as a batch job with no stdin.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39815 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2016-05-27 07:15:31 +00:00
parent d9e4ebfe40
commit f04dd1b322

View file

@ -108,7 +108,7 @@
[timer invalidate];
fh = [NSFileHandle fileHandleWithStandardInput];
fh = [[NSPipe pipe] fileHandleForReading];
[nc addObserver: self selector:@selector(notified:)
name: nil object:fh];
[fh readInBackgroundAndNotify];