From: solar Date: Fri, 27 Jan 2006 06:27:27 +0000 (+0000) Subject: Disabled zero-length sorting test when running under *BSD as *BSD libc falls into... X-Git-Tag: v0.4~20 X-Git-Url: https://pd.if.org/git/?p=pdclib;a=commitdiff_plain;h=4bf4b212eb8f7a96145b06f91db453fbec396ce8 Disabled zero-length sorting test when running under *BSD as *BSD libc falls into endless loop. --- 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; }