diff options
author | Hubert Figuiere <hub@figuiere.net> | 2008-01-12 00:42:43 -0500 |
---|---|---|
committer | Hubert Figuiere <hub@figuiere.net> | 2008-01-12 00:42:43 -0500 |
commit | 966cb74046819e5f0908c903cb5d5c54f93ad172 (patch) | |
tree | 058bddc1ce723bc035eeefd084f78ff00ced39b3 | |
parent | a091193d40b6ce0746c73d7d7d517f673d93cb55 (diff) |
* exempi/tests/test2.cpp (test_tiff_leak): Ensure that the file isexempi-1.99.6
writable.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | exempi/tests/test2.cpp | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2008-01-11 Hubert Figuiere <hub@figuiere.net> + + * exempi/tests/test2.cpp (test_tiff_leak): Ensure that the file is + writable. + 2007-12-22 Hubert Figuiere <hub@figuiere.net> * configure.ac: make boost optional as it is only for diff --git a/exempi/tests/test2.cpp b/exempi/tests/test2.cpp index 0df2eba..50c4a8a 100644 --- a/exempi/tests/test2.cpp +++ b/exempi/tests/test2.cpp @@ -37,6 +37,7 @@ #include <stdlib.h> #include <stdio.h> #include <string.h> +#include <sys/stat.h> #include <string> @@ -156,7 +157,7 @@ test_tiff_leak() std::string command = "cp "; command += orig_tiff_file + " test.tif"; BOOST_CHECK(system(command.c_str()) >= 0); - + BOOST_CHECK(chmod("test.tif", S_IRUSR|S_IWUSR) == 0); BOOST_CHECK(xmp_init()); XmpFilePtr f = xmp_files_open_new("test.tif", XMP_OPEN_FORUPDATE); |