Skip to contentSkip to conversation

Fix floating point tests Android compatibility

PATCH New Erick Reyes 2 participants 2 messages Apr 3, 2018 – Apr 4, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix floating point tests Android compatibility

Floating point tests spawn a signal handler thread, which is then terminated with pthread_cancel / pthread_join calls. Since Android does not implement these functions, the tests were hanging.

The function calls to end the signal handler thread are actually not needed, it will just die when the main thread calls exit().

---
 testcases/misc/math/float/main.c | 2 --
 1 file changed, 2 deletions(-)
testcases/misc/math/float/main.c +0 -2
index d71ca18e6..7285141a4 100644
@@ -299,8 +299,6 @@ finished:
 		SAFE_FREE(pcom);
 
 	}
-	pthread_cancel(sig_hand);
-	pthread_join(sig_hand, NULL);
 	SAFE_FREE(tabcom);
 	SAFE_FREE(threads);
 	tst_rmdir();
Signature · 1 line
2.17.0.rc1.321.gba9d0f2565-goog