/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/futures/futures.future_error/ |
D | code.pass.cpp | 22 std::error_code ec = std::make_error_code(std::future_errc::broken_promise); in main() local 23 std::future_error f(ec); in main() 24 assert(f.code() == ec); in main() 27 std::error_code ec = std::make_error_code(std::future_errc::future_already_retrieved); in main() local 28 std::future_error f(ec); in main() 29 assert(f.code() == ec); in main() 32 std::error_code ec = std::make_error_code(std::future_errc::promise_already_satisfied); in main() local 33 std::future_error f(ec); in main() 34 assert(f.code() == ec); in main() 37 std::error_code ec = std::make_error_code(std::future_errc::no_state); in main() local [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcode/syserr.errcode.modifiers/ |
D | assign.pass.cpp | 22 std::error_code ec; in main() local 23 ec.assign(6, std::system_category()); in main() 24 assert(ec.value() == 6); in main() 25 assert(ec.category() == std::system_category()); in main() 28 std::error_code ec; in main() local 29 ec.assign(8, std::generic_category()); in main() 30 assert(ec.value() == 8); in main() 31 assert(ec.category() == std::generic_category()); in main()
|
D | clear.pass.cpp | 22 std::error_code ec; in main() local 23 ec.assign(6, std::generic_category()); in main() 24 assert(ec.value() == 6); in main() 25 assert(ec.category() == std::generic_category()); in main() 26 ec.clear(); in main() 27 assert(ec.value() == 0); in main() 28 assert(ec.category() == std::system_category()); in main()
|
D | ErrorCodeEnum.pass.cpp | 40 std::error_code ec; in main() local 41 ec = two; in main() 42 assert(ec.value() == 2); in main() 43 assert(ec.category() == std::generic_category()); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcondition/syserr.errcondition.modifiers/ |
D | assign.pass.cpp | 22 std::error_condition ec; in main() local 23 ec.assign(6, std::system_category()); in main() 24 assert(ec.value() == 6); in main() 25 assert(ec.category() == std::system_category()); in main() 28 std::error_condition ec; in main() local 29 ec.assign(8, std::generic_category()); in main() 30 assert(ec.value() == 8); in main() 31 assert(ec.category() == std::generic_category()); in main()
|
D | clear.pass.cpp | 22 std::error_condition ec; in main() local 23 ec.assign(6, std::system_category()); in main() 24 assert(ec.value() == 6); in main() 25 assert(ec.category() == std::system_category()); in main() 26 ec.clear(); in main() 27 assert(ec.value() == 0); in main() 28 assert(ec.category() == std::generic_category()); in main()
|
D | ErrorConditionEnum.pass.cpp | 22 std::error_condition ec; in main() local 23 ec = std::errc::not_enough_memory; in main() 24 assert(ec.value() == static_cast<int>(std::errc::not_enough_memory)); in main() 25 assert(ec.category() == std::generic_category()); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.device/ |
D | ctor.pass.cpp | 34 int ec; in main() local 35 ec = close(STDIN_FILENO); in main() 36 assert(!ec); in main() 37 ec = close(STDOUT_FILENO); in main() 38 assert(!ec); in main() 39 ec = close(STDERR_FILENO); in main() 40 assert(!ec); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ |
D | mutex.cpp | 31 int ec = pthread_mutex_lock(&__m_); in lock() local 32 if (ec) in lock() 33 __throw_system_error(ec, "mutex lock failed"); in lock() 45 int ec = pthread_mutex_unlock(&__m_); in unlock() local 46 (void)ec; in unlock() 47 assert(ec == 0); in unlock() 55 int ec = pthread_mutexattr_init(&attr); in recursive_mutex() local 56 if (ec) in recursive_mutex() 58 ec = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); in recursive_mutex() 59 if (ec) in recursive_mutex() [all …]
|
D | system_error.cpp | 152 system_error::__init(const error_code& ec, string what_arg) in __init() argument 154 if (ec) in __init() 158 what_arg += ec.message(); in __init() 163 system_error::system_error(error_code ec, const string& what_arg) in system_error() argument 164 : runtime_error(__init(ec, what_arg)), in system_error() 165 __ec_(ec) in system_error() 169 system_error::system_error(error_code ec, const char* what_arg) in system_error() argument 170 : runtime_error(__init(ec, what_arg)), in system_error() 171 __ec_(ec) in system_error() 175 system_error::system_error(error_code ec) in system_error() argument [all …]
|
D | condition_variable.cpp | 42 int ec = pthread_cond_wait(&__cv_, lk.mutex()->native_handle()); in wait() local 43 if (ec) in wait() 44 __throw_system_error(ec, "condition_variable wait failed"); in wait() 72 int ec = pthread_cond_timedwait(&__cv_, lk.mutex()->native_handle(), &ts); in __do_timed_wait() local 73 if (ec != 0 && ec != ETIMEDOUT) in __do_timed_wait() 74 __throw_system_error(ec, "condition_variable timed_wait failed"); in __do_timed_wait()
|
D | thread.cpp | 43 int ec = pthread_join(__t_, 0); in join() local 45 if (ec) in join() 46 throw system_error(error_code(ec, system_category()), "thread::join failed"); in join() 48 (void)ec; in join() 56 int ec = EINVAL; in detach() local 59 ec = pthread_detach(__t_); in detach() 60 if (ec == 0) in detach() 64 if (ec) in detach() 65 throw system_error(error_code(ec, system_category()), "thread::detach failed"); in detach()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcode/syserr.errcode.observers/ |
D | default_error_condition.pass.cpp | 22 const std::error_code ec(6, std::generic_category()); in main() local 23 std::error_condition e_cond = ec.default_error_condition(); in main() 24 assert(e_cond == ec); in main() 27 const std::error_code ec(6, std::system_category()); in main() local 28 std::error_condition e_cond = ec.default_error_condition(); in main() 29 assert(e_cond == ec); in main()
|
D | bool.pass.cpp | 23 const std::error_code ec(6, std::generic_category()); in main() local 24 assert(static_cast<bool>(ec)); in main() 27 const std::error_code ec(0, std::generic_category()); in main() local 28 assert(!static_cast<bool>(ec)); in main()
|
D | value.pass.cpp | 21 const std::error_code ec(6, std::system_category()); in main() local 22 assert(ec.value() == 6); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcode/syserr.errcode.constructors/ |
D | int_error_category.pass.cpp | 22 std::error_code ec(6, std::system_category()); in main() local 23 assert(ec.value() == 6); in main() 24 assert(ec.category() == std::system_category()); in main() 27 std::error_code ec(8, std::generic_category()); in main() local 28 assert(ec.value() == 8); in main() 29 assert(ec.category() == std::generic_category()); in main()
|
D | default.pass.cpp | 21 std::error_code ec; in main() local 22 assert(ec.value() == 0); in main() 23 assert(ec.category() == std::system_category()); in main()
|
D | ErrorCodeEnum.pass.cpp | 40 std::error_code ec(two); in main() local 41 assert(ec.value() == 2); in main() 42 assert(ec.category() == std::generic_category()); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcondition/syserr.errcondition.constructors/ |
D | int_error_category.pass.cpp | 22 std::error_condition ec(6, std::system_category()); in main() local 23 assert(ec.value() == 6); in main() 24 assert(ec.category() == std::system_category()); in main() 27 std::error_condition ec(8, std::generic_category()); in main() local 28 assert(ec.value() == 8); in main() 29 assert(ec.category() == std::generic_category()); in main()
|
D | default.pass.cpp | 21 std::error_condition ec; in main() local 22 assert(ec.value() == 0); in main() 23 assert(ec.category() == std::generic_category()); in main()
|
D | ErrorConditionEnum.pass.cpp | 22 std::error_condition ec(std::errc::not_a_directory); in main() local 23 assert(ec.value() == static_cast<int>(std::errc::not_a_directory)); in main() 24 assert(ec.category() == std::generic_category()); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcondition/syserr.errcondition.observers/ |
D | bool.pass.cpp | 23 const std::error_condition ec(6, std::generic_category()); in main() local 24 assert(static_cast<bool>(ec)); in main() 27 const std::error_condition ec(0, std::generic_category()); in main() local 28 assert(!static_cast<bool>(ec)); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/iostreams.base/std.ios.manip/error.reporting/ |
D | make_error_code.pass.cpp | 20 std::error_code ec = make_error_code(std::io_errc::stream); in main() local 21 assert(ec.value() == static_cast<int>(std::io_errc::stream)); in main() 22 assert(ec.category() == std::iostream_category()); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcode/syserr.errcode.nonmembers/ |
D | make_error_code.pass.cpp | 22 std::error_code ec = make_error_code(std::errc::operation_canceled); in main() local 23 assert(ec.value() == static_cast<int>(std::errc::operation_canceled)); in main() 24 assert(ec.category() == std::generic_category()); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/futures/futures.errors/ |
D | make_error_code.pass.cpp | 22 std::error_code ec = make_error_code(std::future_errc::broken_promise); in main() local 23 assert(ec.value() == static_cast<int>(std::future_errc::broken_promise)); in main() 24 assert(ec.category() == std::future_category()); in main()
|