comparison packages/language/c/libc/current/tests/string/strcspn.c @ 2:443894e2e912 ecos-v1_2_1-release

Block commit of eCos version 1.2.1
author jlarmour
date Tue, 11 May 1999 12:24:34 +0000
parents 3111d98ba7b3
children c38311975d4f
comparison
equal deleted inserted replaced
1:72f549f0d891 2:443894e2e912
20 // 20 //
21 // The Original Code is eCos - Embedded Cygnus Operating System, released 21 // The Original Code is eCos - Embedded Cygnus Operating System, released
22 // September 30, 1998. 22 // September 30, 1998.
23 // 23 //
24 // The Initial Developer of the Original Code is Cygnus. Portions created 24 // The Initial Developer of the Original Code is Cygnus. Portions created
25 // by Cygnus are Copyright (C) 1998 Cygnus Solutions. All Rights Reserved. 25 // by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved.
26 // ------------------------------------------- 26 // -------------------------------------------
27 // 27 //
28 //####COPYRIGHTEND#### 28 //####COPYRIGHTEND####
29 //================================================================= 29 //=================================================================
30 //#####DESCRIPTIONBEGIN#### 30 //#####DESCRIPTIONBEGIN####
31 // 31 //
32 // Author(s): ctarpy@cygnus.co.uk, jlarmour@cygnus.co.uk 32 // Author(s): ctarpy, jlarmour
33 // Contributors: jlarmour@cygnus.co.uk 33 // Contributors: jlarmour
34 // Date: 1998/6/3 34 // Date: 1998/6/3
35 // Description: Contains testcode for C library strcspn() function 35 // Description: Contains testcode for C library strcspn() function
36 // 36 //
37 // 37 //
38 //####DESCRIPTIONEND#### 38 //####DESCRIPTIONEND####
150 ret = strcspn(x, y); 150 ret = strcspn(x, y);
151 CYG_TEST_PASS_FAIL( (ret == (my_strlen(x) - 1)), 151 CYG_TEST_PASS_FAIL( (ret == (my_strlen(x) - 1)),
152 "Penultimate character of string" ); 152 "Penultimate character of string" );
153 153
154 #else // ifndef CYGPKG_LIBC 154 #else // ifndef CYGPKG_LIBC
155 CYG_TEST_PASS("Testing is not applicable to this configuration"); 155 CYG_TEST_NA("Testing is not applicable to this configuration");
156 #endif // ifndef CYGPKG_LIBC 156 #endif // ifndef CYGPKG_LIBC
157 157
158 CYG_TEST_FINISH("Finished tests from testcase " __FILE__ " for C library " 158 CYG_TEST_FINISH("Finished tests from testcase " __FILE__ " for C library "
159 "strcspn() function"); 159 "strcspn() function");
160 } // main() 160 } // main()