From 6ff976ec2faeeb99936cd9e07ba2a08936bf3036 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. git-svn-id: https://srv7.svn-repos.de/dev34/pdclib/trunk@120 546481bc-9713-0410-bf18-d3337bbf4a3e --- 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.30.2