projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0d24fa
)
Test exception on adding a non-existant image file.
author
Carl Hetherington
<cth@carlh.net>
Wed, 18 Jul 2012 00:44:40 +0000
(
01:44
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 18 Jul 2012 00:44:40 +0000
(
01:44
+0100)
test/tests.cc
patch
|
blob
|
history
diff --git
a/test/tests.cc
b/test/tests.cc
index f4e5b4415d023d78a6c1219734d30ad5fcde7e93..20bc19f07fecfe486a18bb7b8cb870b0289ddacb 100644
(file)
--- a/
test/tests.cc
+++ b/
test/tests.cc
@@
-23,6
+23,7
@@
#include "util.h"
#include "metadata.h"
#include "types.h"
+#include "exceptions.h"
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE libdcp_test
@@
-64,3
+65,11
@@
BOOST_AUTO_TEST_CASE (dcp_test)
d.write_xml ();
}
+
+BOOST_AUTO_TEST_CASE (error_test)
+{
+ libdcp::DCP d ("build/test/bar", "A Test DCP", libdcp::DCP::TEST, 24, 24);
+ vector<string> p;
+ p.push_back ("frobozz");
+ BOOST_CHECK_THROW (d.add_picture_asset (p, 32, 32), libdcp::FileError);
+}