From 4bf4b212eb8f7a96145b06f91db453fbec396ce8 Mon Sep 17 00:00:00 2001 From: solar Date: Fri, 27 Jan 2006 06:27:27 +0000 Subject: [PATCH] Disabled zero-length sorting test when running under *BSD as *BSD libc falls into endless loop. --- functions/stdlib/qsort.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions/stdlib/qsort.c b/functions/stdlib/qsort.c index 8941e6d..fedda0f 100644 --- a/functions/stdlib/qsort.c +++ b/functions/stdlib/qsort.c @@ -154,8 +154,12 @@ int main() strcpy( s, presort ); qsort( s, 1, 1, compare ); TESTCASE( strcmp( s, presort ) == 0 ); +#if __BSD_VISIBLE + puts( "qsort.c: Skipping test #4 for BSD as it goes into endless loop here." ); +#else qsort( s, 100, 0, compare ); TESTCASE( strcmp( s, presort ) == 0 ); +#endif return TEST_RESULTS; } -- 2.40.0