Displaying config.summary sometimes results in an infinite loop because
the loop condition only checks that failbit and badbit are not set.
The eofbit may be set with failbit and badbit not set.
Change-Id: I209480fbf114365fd4fdf1289c988a386f9f2562
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
// display config.summary
sout.seekg(0, ios::beg);
- while (sout) {
+ while (sout.good()) {
string str;
getline(sout, str);
cout << str << endl;