You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bo...@apache.org on 2023/12/13 08:40:19 UTC
(xerces-c) 03/06: Fix NetAccessorTest to exit with non-zero status in case of error
This is an automated email from the ASF dual-hosted git repository.
borisk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/xerces-c.git
commit 0f5dcca041b16f628f23f17a5e1a9f115148baa0
Author: Boris Kolpackov <bo...@codesynthesis.com>
AuthorDate: Wed Dec 13 08:46:59 2023 +0200
Fix NetAccessorTest to exit with non-zero status in case of error
---
tests/src/NetAccessorTest/NetAccessorTest.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/src/NetAccessorTest/NetAccessorTest.cpp b/tests/src/NetAccessorTest/NetAccessorTest.cpp
index 7cbc84cb8..d0d0b67ed 100644
--- a/tests/src/NetAccessorTest/NetAccessorTest.cpp
+++ b/tests/src/NetAccessorTest/NetAccessorTest.cpp
@@ -118,6 +118,8 @@ main(int argc, char** argv)
// Get the URL
char* url = argv[1];
+ int r = 1;
+
// Do the test
try
{
@@ -144,7 +146,7 @@ main(int argc, char** argv)
// Delete the is
delete is;
-
+ r = 0;
}
catch(const XMLException& toCatch)
{
@@ -156,6 +158,6 @@ main(int argc, char** argv)
// And call the termination method
XMLPlatformUtils::Terminate();
- return 0;
+ return r;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org