comparison packages/language/c/libc/current/tests/string/strchr.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 strchr() function 35 // Description: Contains testcode for C library strchr() function
36 // 36 //
37 // 37 //
38 //####DESCRIPTIONEND#### 38 //####DESCRIPTIONEND####
120 ret = strchr( empty_str, (int)'\0' ); 120 ret = strchr( empty_str, (int)'\0' );
121 CYG_TEST_PASS_FAIL( ret == empty_str, "Boundary test 2" ); 121 CYG_TEST_PASS_FAIL( ret == empty_str, "Boundary test 2" );
122 122
123 123
124 #else // ifndef CYGPKG_LIBC 124 #else // ifndef CYGPKG_LIBC
125 CYG_TEST_PASS("Testing is not applicable to this configuration"); 125 CYG_TEST_NA("Testing is not applicable to this configuration");
126 #endif // ifndef CYGPKG_LIBC 126 #endif // ifndef CYGPKG_LIBC
127 127
128 CYG_TEST_FINISH("Finished tests from testcase " __FILE__ " for C library " 128 CYG_TEST_FINISH("Finished tests from testcase " __FILE__ " for C library "
129 "strchr() function"); 129 "strchr() function");
130 } // main() 130 } // main()