Mercurial > ecos-v3_0-branch
changeset 2727:a617eb45dda6
Allow the setjmp test to work in configurations which do not use
main().
| author | bartv |
|---|---|
| date | Wed, 28 Jan 2009 16:20:42 +0000 |
| parents | 15a9d2b134ef |
| children | e5db16acddac |
| files | packages/language/c/libc/setjmp/current/ChangeLog packages/language/c/libc/setjmp/current/tests/setjmp.c |
| diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/language/c/libc/setjmp/current/ChangeLog +++ b/packages/language/c/libc/setjmp/current/ChangeLog @@ -1,3 +1,7 @@ +2009-01-28 Bart Veer <bartv@ecoscentric.com> + + * tests/setjmp.c: allow to run if CYGPKG_LIBC_STARTUP is absent. + 2003-02-24 Jonathan Larmour <jifl@eCosCentric.com> * cdl/setjmp.cdl: Fix doc link.
--- a/packages/language/c/libc/setjmp/current/tests/setjmp.c +++ b/packages/language/c/libc/setjmp/current/tests/setjmp.c @@ -64,6 +64,7 @@ // INCLUDES +#include <pkgconf/system.h> #include <cyg/infra/testcase.h> // Test infrastructure header #include <setjmp.h> // Header for what we're testing @@ -86,8 +87,12 @@ test_fun( void ) } // test_fun(); +#ifndef CYGPKG_LIBC_STARTUP +void cyg_user_start(void) +#else int main( int argc, char *argv[] ) +#endif { static int static_i=0; // temporary variable int j=0; // ditto
