summaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-04 00:54:06 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-04 00:54:06 (GMT)
commit53285acbd3e480837b7544bd217767cf9dbfa530 (patch)
treefbdcefb64fe556069dc108381b7f4aa5b915122b /test/src
parent5f86427032dbda9aedf5afa4a10fd57a2343eeaa (diff)
downloaduscxml-53285acbd3e480837b7544bd217767cf9dbfa530.zip
uscxml-53285acbd3e480837b7544bd217767cf9dbfa530.tar.gz
uscxml-53285acbd3e480837b7544bd217767cf9dbfa530.tar.bz2
Stop registering a custom exception handler
Diffstat (limited to 'test/src')
-rw-r--r--test/src/test-w3c.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/src/test-w3c.cpp b/test/src/test-w3c.cpp
index 4d866c0..39862f4 100644
--- a/test/src/test-w3c.cpp
+++ b/test/src/test-w3c.cpp
@@ -39,6 +39,7 @@ void printBacktrace(void** array, int size) {
}
#ifdef HAS_DLFCN_H
+#if 0 // deactivated as we use exceptions to signal errors now
// see https://gist.github.com/nkuln/2020860
typedef void (*cxa_throw_type)(void *, void *, void (*) (void *));
cxa_throw_type orig_cxa_throw = 0;
@@ -47,6 +48,7 @@ void load_orig_throw_code() {
orig_cxa_throw = (cxa_throw_type) dlsym(RTLD_NEXT, "__cxa_throw");
}
+#if 0
extern "C"
void __cxa_throw (void *thrown_exception, void *pvtinfo, void (*dest)(void *)) {
std::cerr << __FUNCTION__ << " will throw exception from " << std::endl;
@@ -60,6 +62,7 @@ void __cxa_throw (void *thrown_exception, void *pvtinfo, void (*dest)(void *)) {
}
#endif
#endif
+#endif
// see http://stackoverflow.com/questions/2443135/how-do-i-find-where-an-exception-was-thrown-in-c