diff options
Diffstat (limited to 'libodb-boost/tests/basics')
-rw-r--r-- | libodb-boost/tests/basics/buildfile | 6 | ||||
-rw-r--r-- | libodb-boost/tests/basics/driver.cxx | 22 |
2 files changed, 28 insertions, 0 deletions
diff --git a/libodb-boost/tests/basics/buildfile b/libodb-boost/tests/basics/buildfile new file mode 100644 index 0000000..c148079 --- /dev/null +++ b/libodb-boost/tests/basics/buildfile @@ -0,0 +1,6 @@ +# file : tests/basics/buildfile +# license : GNU GPL v2; see accompanying LICENSE file + +import libs = libodb-boost%lib{odb-boost} + +exe{driver}: {hxx cxx}{*} $libs diff --git a/libodb-boost/tests/basics/driver.cxx b/libodb-boost/tests/basics/driver.cxx new file mode 100644 index 0000000..a9c9c3d --- /dev/null +++ b/libodb-boost/tests/basics/driver.cxx @@ -0,0 +1,22 @@ +// file : tests/basics/driver.cxx +// license : GNU GPL v2; see accompanying LICENSE file + +// Basic test to make sure the library is usable. Functionality testing +// is done in the odb-tests package. + +#include <odb/boost/exception.hxx> +#include <odb/boost/date-time/exceptions.hxx> + +using namespace odb; + +int +main () +{ + try + { + throw boost::date_time::value_out_of_range (); + } + catch (const boost::exception&) + { + } +} |