Mercurial > flash_v2
comparison packages/language/c/libc/current/tests/setjmp/setjmp.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): jlarmour@cygnus.co.uk | 32 // Author(s): jlarmour |
| 33 // Contributors: jlarmour@cygnus.co.uk | 33 // Contributors: jlarmour |
| 34 // Date: 1998-02-13 | 34 // Date: 1998-02-13 |
| 35 // Purpose: | 35 // Purpose: |
| 36 // Description: Contains test code for C library setjmp() and longjmp() | 36 // Description: Contains test code for C library setjmp() and longjmp() |
| 37 // functions | 37 // functions |
| 38 // The ANSI standard allows setjmp calls to be used ONLY in the | 38 // The ANSI standard allows setjmp calls to be used ONLY in the |
| 237 test_fun(); | 237 test_fun(); |
| 238 | 238 |
| 239 CYG_TEST_PASS_FAIL ( (vol_k == 20), "Repeated longjmps from a function" ); | 239 CYG_TEST_PASS_FAIL ( (vol_k == 20), "Repeated longjmps from a function" ); |
| 240 | 240 |
| 241 #else // ifndef CYGPKG_LIBC | 241 #else // ifndef CYGPKG_LIBC |
| 242 CYG_TEST_PASS("Testing is not applicable to this configuration"); | 242 CYG_TEST_NA("Testing is not applicable to this configuration"); |
| 243 #endif // ifndef CYGPKG_LIBC | 243 #endif // ifndef CYGPKG_LIBC |
| 244 | 244 |
| 245 CYG_TEST_FINISH("Finished tests from testcase " __FILE__ " for C library " | 245 CYG_TEST_FINISH("Finished tests from testcase " __FILE__ " for C library " |
| 246 "setjmp()/longjmp() functions"); | 246 "setjmp()/longjmp() functions"); |
| 247 | 247 |
