summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/numerics/rand/rand.device/ctor.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/numerics/rand/rand.device/ctor.pass.cpp')
-rw-r--r--libcxx/test/std/numerics/rand/rand.device/ctor.pass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/numerics/rand/rand.device/ctor.pass.cpp b/libcxx/test/std/numerics/rand/rand.device/ctor.pass.cpp
index 9709484eb42..8c45bb19a0a 100644
--- a/libcxx/test/std/numerics/rand/rand.device/ctor.pass.cpp
+++ b/libcxx/test/std/numerics/rand/rand.device/ctor.pass.cpp
@@ -27,6 +27,8 @@
#include <unistd.h>
#endif
+#include "test_macros.h"
+
bool is_valid_random_device(const std::string &token) {
#if defined(_LIBCPP_USING_DEV_RANDOM)
@@ -44,7 +46,7 @@ void check_random_device_valid(const std::string &token) {
void check_random_device_invalid(const std::string &token) {
try {
std::random_device r(token);
- assert(false);
+ LIBCPP_ASSERT(false);
} catch (const std::system_error&) {
}
}
OpenPOWER on IntegriCloud