comparison packages/language/c/libc/current/tests/string/strstr.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 strstr() function 35 // Description: Contains testcode for C library strstr() function
36 // 36 //
37 // 37 //
38 //####DESCRIPTIONEND#### 38 //####DESCRIPTIONEND####
133 my_strcpy(y, ""); 133 my_strcpy(y, "");
134 ret = strstr(x, y); 134 ret = strstr(x, y);
135 CYG_TEST_PASS_FAIL( (ret == x), "Both strings empty" ); 135 CYG_TEST_PASS_FAIL( (ret == x), "Both strings empty" );
136 136
137 #else // ifndef CYGPKG_LIBC 137 #else // ifndef CYGPKG_LIBC
138 CYG_TEST_PASS("Testing is not applicable to this configuration"); 138 CYG_TEST_NA("Testing is not applicable to this configuration");
139 #endif // ifndef CYGPKG_LIBC 139 #endif // ifndef CYGPKG_LIBC
140 140
141 CYG_TEST_FINISH("Finished tests from testcase " __FILE__ " for C library " 141 CYG_TEST_FINISH("Finished tests from testcase " __FILE__ " for C library "
142 "strstr() function"); 142 "strstr() function");
143 143