summaryrefslogtreecommitdiff
path: root/datatest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'datatest.cpp')
-rw-r--r--datatest.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/datatest.cpp b/datatest.cpp
index eac1d7f..5d84c01 100644
--- a/datatest.cpp
+++ b/datatest.cpp
@@ -281,6 +281,7 @@ void TestDigestOrMAC(TestData &v, bool testDigest)
bool GetField(std::istream &is, std::string &name, std::string &value)
{
+ name.clear();
is >> name;
if (name.empty())
return false;
@@ -293,8 +294,8 @@ bool GetField(std::istream &is, std::string &name, std::string &value)
is.ignore(1);
// VC60 workaround: getline bug
- char buffer[4];
- value.resize(0);
+ char buffer[128];
+ value.clear();
bool continueLine;
do
@@ -421,7 +422,7 @@ void TestDataFile(const std::string &filename, unsigned int &totalTests, unsigne
failedTests++;
}
else
- cout << ".";
+ cout << "." << flush;
totalTests++;
}