Utils/Exception: Allow to disable ErrnoExceptions via SENF_NO_ERRNOEXC
[senf.git] / Utils / Exception.test.cc
index 50e3c97..bf40f0c 100644 (file)
@@ -54,7 +54,7 @@ BOOST_AUTO_UNIT_TEST(errnoException)
         }
     }
     catch (senf::SystemException & e) {
-        BOOST_CHECK_EQUAL( e.code(), ENOENT );
+        BOOST_CHECK_EQUAL( e.errorNumber(), ENOENT );
         BOOST_CHECK_EQUAL( e.what(), "::open(): (2) No such file or directory: x=1, y=2" );
     }
 }