summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-08 08:17:04 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-08 08:17:04 +0000
commitf15067a5ef83edc8ea6aab7edc8450caa44cd7ab (patch)
tree2edd69c951e3e81350422aed1b1f269853529866
parent8c5a553b649a5a04130e5f95ecafe658f5342a52 (diff)
dont include atexit() if uClibc doesnt support it
-rw-r--r--test/testsuite.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/testsuite.h b/test/testsuite.h
index 3465d328e..312b7cd47 100644
--- a/test/testsuite.h
+++ b/test/testsuite.h
@@ -70,7 +70,9 @@ void init_testsuite(const char* testname)
printf("%s", testname);
test_number = 0;
failures = 0;
+#if !defined(__UCLIBC__) || defined(__UCLIBC_DYNAMIC_ATEXIT__)
atexit(done_testing);
+#endif
}
#endif /* __NO_TESTCODE__ */