Searched refs:ec (Results 1 - 25 of 33) sorted by relevance

12

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcode/syserr.errcode.modifiers/
H A Dclear.pass.cpp22 std::error_code ec; local
23 ec.assign(6, std::generic_category());
24 assert(ec.value() == 6);
25 assert(ec.category() == std::generic_category());
26 ec.clear();
27 assert(ec.value() == 0);
28 assert(ec.category() == std::system_category());
H A Dassign.pass.cpp22 std::error_code ec; local
23 ec.assign(6, std::system_category());
24 assert(ec.value() == 6);
25 assert(ec.category() == std::system_category());
28 std::error_code ec; local
29 ec.assign(8, std::generic_category());
30 assert(ec.value() == 8);
31 assert(ec.category() == std::generic_category());
H A DErrorCodeEnum.pass.cpp40 std::error_code ec; local
41 ec = two;
42 assert(ec.value() == 2);
43 assert(ec.category() == std::generic_category());
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcondition/syserr.errcondition.modifiers/
H A Dclear.pass.cpp22 std::error_condition ec; local
23 ec.assign(6, std::system_category());
24 assert(ec.value() == 6);
25 assert(ec.category() == std::system_category());
26 ec.clear();
27 assert(ec.value() == 0);
28 assert(ec.category() == std::generic_category());
H A Dassign.pass.cpp22 std::error_condition ec; local
23 ec.assign(6, std::system_category());
24 assert(ec.value() == 6);
25 assert(ec.category() == std::system_category());
28 std::error_condition ec; local
29 ec.assign(8, std::generic_category());
30 assert(ec.value() == 8);
31 assert(ec.category() == std::generic_category());
H A DErrorConditionEnum.pass.cpp22 std::error_condition ec; local
23 ec = std::errc::not_enough_memory;
24 assert(ec.value() == static_cast<int>(std::errc::not_enough_memory));
25 assert(ec.category() == std::generic_category());
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcode/syserr.errcode.constructors/
H A Ddefault.pass.cpp21 std::error_code ec; local
22 assert(ec.value() == 0);
23 assert(ec.category() == std::system_category());
H A Dint_error_category.pass.cpp22 std::error_code ec(6, std::system_category());
23 assert(ec.value() == 6);
24 assert(ec.category() == std::system_category());
27 std::error_code ec(8, std::generic_category());
28 assert(ec.value() == 8);
29 assert(ec.category() == std::generic_category());
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcondition/syserr.errcondition.constructors/
H A Ddefault.pass.cpp21 std::error_condition ec; local
22 assert(ec.value() == 0);
23 assert(ec.category() == std::generic_category());
H A Dint_error_category.pass.cpp22 std::error_condition ec(6, std::system_category());
23 assert(ec.value() == 6);
24 assert(ec.category() == std::system_category());
27 std::error_condition ec(8, std::generic_category());
28 assert(ec.value() == 8);
29 assert(ec.category() == std::generic_category());
H A DErrorConditionEnum.pass.cpp22 std::error_condition ec(std::errc::not_a_directory);
23 assert(ec.value() == static_cast<int>(std::errc::not_a_directory));
24 assert(ec.category() == std::generic_category());
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcode/syserr.errcode.observers/
H A Dbool.pass.cpp23 const std::error_code ec(6, std::generic_category());
24 assert(static_cast<bool>(ec));
27 const std::error_code ec(0, std::generic_category());
28 assert(!static_cast<bool>(ec));
H A Ddefault_error_condition.pass.cpp22 const std::error_code ec(6, std::generic_category());
23 std::error_condition e_cond = ec.default_error_condition();
24 assert(e_cond == ec);
27 const std::error_code ec(6, std::system_category());
28 std::error_condition e_cond = ec.default_error_condition();
29 assert(e_cond == ec);
H A Dcategory.pass.cpp21 const std::error_code ec(6, std::generic_category());
22 assert(ec.category() == std::generic_category());
H A Dvalue.pass.cpp21 const std::error_code ec(6, std::system_category());
22 assert(ec.value() == 6);
H A Dmessage.pass.cpp22 const std::error_code ec(6, std::generic_category());
23 assert(ec.message() == std::generic_category().message(6));
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcondition/syserr.errcondition.observers/
H A Dbool.pass.cpp23 const std::error_condition ec(6, std::generic_category());
24 assert(static_cast<bool>(ec));
27 const std::error_condition ec(0, std::generic_category());
28 assert(!static_cast<bool>(ec));
H A Dcategory.pass.cpp21 const std::error_condition ec(6, std::generic_category());
22 assert(ec.category() == std::generic_category());
H A Dvalue.pass.cpp21 const std::error_condition ec(6, std::system_category());
22 assert(ec.value() == 6);
H A Dmessage.pass.cpp22 const std::error_condition ec(6, std::generic_category());
23 assert(ec.message() == std::generic_category().message(6));
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.device/
H A Dctor.pass.cpp34 int ec; local
35 ec = close(STDIN_FILENO);
36 assert(!ec);
37 ec = close(STDOUT_FILENO);
38 assert(!ec);
39 ec = close(STDERR_FILENO);
40 assert(!ec);
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/futures/futures.future_error/
H A Dcode.pass.cpp22 std::error_code ec = std::make_error_code(std::future_errc::broken_promise); local
23 std::future_error f(ec);
24 assert(f.code() == ec);
27 std::error_code ec = std::make_error_code(std::future_errc::future_already_retrieved); local
28 std::future_error f(ec);
29 assert(f.code() == ec);
32 std::error_code ec = std::make_error_code(std::future_errc::promise_already_satisfied); local
33 std::future_error f(ec);
34 assert(f.code() == ec);
37 std::error_code ec local
[all...]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/futures/futures.errors/
H A Dfuture_category.pass.cpp20 const std::error_category& ec = std::future_category(); local
21 assert(std::strcmp(ec.name(), "future") == 0);
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcode/syserr.errcode.nonmembers/
H A Dmake_error_code.pass.cpp22 std::error_code ec = make_error_code(std::errc::operation_canceled); local
23 assert(ec.value() == static_cast<int>(std::errc::operation_canceled));
24 assert(ec.category() == std::generic_category());
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/iostreams.base/std.ios.manip/error.reporting/
H A Dmake_error_code.pass.cpp20 std::error_code ec = make_error_code(std::io_errc::stream); local
21 assert(ec.value() == static_cast<int>(std::io_errc::stream));
22 assert(ec.category() == std::iostream_category());

Completed in 760 milliseconds

12