summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2007-11-21 11:37:30 (UTC)
committer Michael Krelin <hacker@klever.net>2007-11-21 11:37:30 (UTC)
commit636135ac92ff022348ea8b5c8f4e5e7c1f928edd (patch) (side-by-side diff)
treec5af3ee12035338daad4e4dda2302c3e96edae15
parent2937fe0e47a7ff46c5ad1aee3ad764e56ca6d49b (diff)
downloadlibopkele-636135ac92ff022348ea8b5c8f4e5e7c1f928edd.zip
libopkele-636135ac92ff022348ea8b5c8f4e5e7c1f928edd.tar.gz
libopkele-636135ac92ff022348ea8b5c8f4e5e7c1f928edd.tar.bz2
Fix for -pedantic build
Thanks to Marcus Rueckert for pointing this out. Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--test/test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test.cc b/test/test.cc
index 7def12f..0010f2b 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -56,13 +56,13 @@ void test_retrieve_links() {
test_retrieve_links("unclosed-head.html",true,"http://www.klever.net/openid.server","http://hacker.klever.net/");
test_retrieve_links("spaced-links.html",true,"http://www.klever.net/openid.server","http://hacker.klever.net/");
test_retrieve_links("spaced-link-attrs.html",true,"http://www.klever.net/openid.server","http://hacker.klever.net/");
test_retrieve_links("2rels.html",true,"http://www.klever.net/openid.server","http://www.klever.net/openid.server");
}
-main() {
+int main() {
try {
test_retrieve_links();
}catch(failed_test& ft) {
cerr << "Test failed: " << ft.what() << endl;
}catch(exception& e) {
cerr << "oops: " << e.what() << endl;