aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-12-12 11:02:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-12-12 11:02:19 +0200
commit326918c41ac1988e373d2aa5edb0ab68e735070c (patch)
tree28237c4579dcafea9cb3bd032574ebe5c37611bc /tests
parentffc931dfb8829c8ae36b171d47f3230e10b67cea (diff)
Add support for VC 15u5
Diffstat (limited to 'tests')
-rw-r--r--tests/base64/driver.cxx2
-rw-r--r--tests/regex/driver.cxx5
-rw-r--r--tests/timestamp/driver.cxx2
3 files changed, 7 insertions, 2 deletions
diff --git a/tests/base64/driver.cxx b/tests/base64/driver.cxx
index fb65a49..195eaf0 100644
--- a/tests/base64/driver.cxx
+++ b/tests/base64/driver.cxx
@@ -40,7 +40,7 @@ encode (const string& i, const string& o)
// VC15 seekg() doesn't clear eofbit.
//
-#if defined(_MSC_VER) && _MSC_VER <= 1911
+#if defined(_MSC_VER) && _MSC_VER <= 1912
is.clear ();
#endif
diff --git a/tests/regex/driver.cxx b/tests/regex/driver.cxx
index 3f6129a..5e96f06 100644
--- a/tests/regex/driver.cxx
+++ b/tests/regex/driver.cxx
@@ -74,6 +74,11 @@ try
return r.second ? 0 : 1;
}
+catch (const regex_error& e)
+{
+ cerr << "invalid regex" << e << endl; // Print sanitized.
+ return 2;
+}
catch (const exception& e)
{
cerr << e << endl;
diff --git a/tests/timestamp/driver.cxx b/tests/timestamp/driver.cxx
index ec4c49d..cdaaaec 100644
--- a/tests/timestamp/driver.cxx
+++ b/tests/timestamp/driver.cxx
@@ -133,7 +133,7 @@ main ()
// "Apr 19:31:10 2016" for the format "%b %d %H:%M:%S %Y" as if the input were
// "Apr 19 00:31:10 2016".
//
-#if !defined(_MSC_VER) || _MSC_VER > 1911
+#if !defined(_MSC_VER) || _MSC_VER > 1912
assert (fail ("Apr 19:31:10 2016", "%b %d %H:%M:%S %Y"));
assert (fail (":31 2016", "%H:%M %Y"));
#endif