- close(-123);
- posixx::error e2("fopen");
- BOOST_CHECK_EQUAL(e2.no, EBADF);
- BOOST_CHECK_EQUAL(std::string(e2.what()).find("fopen: "), 0);
+ open("/non/existent", 0);
+ posixx::error e2("open");
+ BOOST_CHECK_EQUAL(e2.no, ENOENT);
+ BOOST_CHECK_EQUAL(std::string(e2.what()).find("open: "), 0);