aboutsummaryrefslogtreecommitdiff
path: root/tests/base64
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-06-29 21:17:43 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-07-01 16:01:31 +0300
commitbac02200267495741e85db90607186ce4e0593b3 (patch)
treed01cd65d0019a7be916c3c8a5d9f4780f91afdb1 /tests/base64
parente0b126d8c7f691856ec4d80bb57cb1ba5c71fd69 (diff)
Port to MSVC
Diffstat (limited to 'tests/base64')
-rw-r--r--tests/base64/driver.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/base64/driver.cxx b/tests/base64/driver.cxx
index e43e04a..a65ddbb 100644
--- a/tests/base64/driver.cxx
+++ b/tests/base64/driver.cxx
@@ -23,6 +23,13 @@ encode (const string& i, const string& o)
if (r)
{
is.seekg (0);
+
+ // VC 19 seekg() doesn't clear eofbit.
+ //
+#if defined(_MSC_VER) && _MSC_VER <= 1900
+ is.clear ();
+#endif
+
ostringstream os;
base64_encode (os, is);
r = os.str () == o && is.eof ();