[PATCH] D35732: Update system_error tests for more platforms.
Marshall Clow via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 31 07:37:07 PDT 2017
mclow.lists added inline comments.
================
Comment at: test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.objects/generic_category.pass.cpp:35
+ // Exact message format varies by platform.
+ LIBCPP_ASSERT(msg == "Unknown error -1" || msg == "Unknown error" ||
+ msg == "Unknown error: -1");
----------------
How about testing for "starts with 'Unknown error'" instead?
Repository:
rL LLVM
https://reviews.llvm.org/D35732
More information about the cfe-commits
mailing list