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--;
}
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--;
}
}
}
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;
#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"
#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"