mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-23 01:18:52 +08:00
Improve portability of random_device tests. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@272746 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
#include <random>
|
||||
#include <cassert>
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
{
|
||||
@@ -28,7 +30,7 @@ int main()
|
||||
{
|
||||
std::random_device r("/dev/null");
|
||||
r();
|
||||
assert(false);
|
||||
LIBCPP_ASSERT(false);
|
||||
}
|
||||
catch (const std::system_error&)
|
||||
{
|
||||
|
Reference in New Issue
Block a user