Explorar o código

dont include atexit() if uClibc doesnt support it

Mike Frysinger %!s(int64=19) %!d(string=hai) anos
pai
achega
f15067a5ef
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      test/testsuite.h

+ 2 - 0
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__ */