samedi 9 juillet 2016

_setmode for stdin and stdout for _O_BINARY mode always fails during unittest

I am trying to write unittest for a program which does this _setmode( _fileno( stdin ), _O_BINARY ) and for stdout as well. when i try to execute this function ( using micrasoft UnitTest framework in visual studio). setmode function always fails and returns -1. can we do something in MS unittest framework?

Aucun commentaire:

Enregistrer un commentaire