Test stdin read after a flush