From: cristy Date: Thu, 7 Jan 2010 02:32:57 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~10177 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e07472f402e04d7f01e0f4b3d413fdf1928237d6;p=imagemagick --- diff --git a/Magick++/tests/exceptions.cpp b/Magick++/tests/exceptions.cpp index de78bc1af..a7f63c6bb 100644 --- a/Magick++/tests/exceptions.cpp +++ b/Magick++/tests/exceptions.cpp @@ -39,10 +39,14 @@ int main( int /*argc*/, char ** argv) try { failures++; + cout << "Throwing 'Magick::WarningResourceLimit' exception" << endl; + cout.flush(); throw WarningResourceLimit("How now brown cow?"); } catch( Exception & /*error_*/ ) { + cout << "Successfully caught 'Magick::WarningResourceLimit' exception" << endl; + cout.flush(); failures--; } @@ -59,10 +63,14 @@ int main( int /*argc*/, char ** argv) try { failures++; + cout << "Throwing library 'Magick::Exception' exception" << endl; + cout.flush(); image.directory(); } catch ( Exception& /*error_*/ ) { + cout << "Successfully caught library 'Magick::Exception' exception" << endl; + cout.flush(); failures--; } } @@ -70,21 +78,24 @@ int main( int /*argc*/, char ** argv) } catch( Exception &error_ ) { - cout << "Caught exception: " << error_.what() << endl; + cout << "Bogus catch: Caught exception: " << error_.what() << endl; + cout.flush(); return 1; } catch( exception &error_ ) { - cout << "Caught exception: " << error_.what() << endl; + cout << "Bogus catch: Caught exception: " << error_.what() << endl; + cout.flush(); return 1; } if ( failures ) { cout << failures << " failures" << endl; + cout.flush(); return 1; } - cout << "passed!" << endl; + cout << "Exception testing passed!" << endl; } return 0; diff --git a/magick/version.h b/magick/version.h index 751385301..77c80195b 100644 --- a/magick/version.h +++ b/magick/version.h @@ -31,6 +31,7 @@ extern "C" { #define MagickLibVersionText "6.5.9" #define MagickLibVersionNumber 2,0,1 #define MagickLibSubversion "-0" +#define MagickLibInterface 2 #define MagickReleaseDate "2010-01-06" #define MagickChangeDate "20100101" #define MagickAuthoritativeURL "http://www.imagemagick.org" diff --git a/magick/version.h.in b/magick/version.h.in index 16c44a3c7..76c602965 100644 --- a/magick/version.h.in +++ b/magick/version.h.in @@ -31,6 +31,7 @@ extern "C" { #define MagickLibVersionText "@MAGICK_LIB_VERSION_TEXT@" #define MagickLibVersionNumber @MAGICK_LIB_VERSION_NUMBER@ #define MagickLibSubversion "@PACKAGE_LIB_SUBVERSION@" +#define MagickLibInterface @MAGICK_LIBRARY_CURRENT@ #define MagickReleaseDate "@PACKAGE_RELEASE_DATE@" #define MagickChangeDate "@PACKAGE_CHANGE_DATE@" #define MagickAuthoritativeURL "http://www.imagemagick.org"