Mercurial > ecos
comparison packages/language/c/libc/stdlib/current/tests/atoi.c @ 2723:ceb6ac6f0ec1
Update tests to work in configurations without main()
| author | bartv |
|---|---|
| date | Wed, 28 Jan 2009 14:46:57 +0000 |
| parents | d2c90368aeef |
| children | 74dbf4c3f2e1 |
comparison
equal
deleted
inserted
replaced
| 2722:736e08f2890d | 2723:ceb6ac6f0ec1 |
|---|---|
| 48 // | 48 // |
| 49 //####DESCRIPTIONEND#### | 49 //####DESCRIPTIONEND#### |
| 50 | 50 |
| 51 // INCLUDES | 51 // INCLUDES |
| 52 | 52 |
| 53 #include <pkgconf/system.h> | |
| 53 #include <stdlib.h> | 54 #include <stdlib.h> |
| 54 #include <cyg/infra/testcase.h> | 55 #include <cyg/infra/testcase.h> |
| 55 | 56 |
| 56 // FUNCTIONS | 57 // FUNCTIONS |
| 57 | 58 |
| 92 CYG_TEST_FINISH("Finished tests from testcase " __FILE__ " for C library " | 93 CYG_TEST_FINISH("Finished tests from testcase " __FILE__ " for C library " |
| 93 "atoi() function"); | 94 "atoi() function"); |
| 94 } // test() | 95 } // test() |
| 95 | 96 |
| 96 | 97 |
| 98 #ifndef CYGPKG_LIBC_STARTUP | |
| 99 void cyg_user_start(void) | |
| 100 #else | |
| 97 int | 101 int |
| 98 main(int argc, char *argv[]) | 102 main( int argc, char *argv[] ) |
| 103 #endif | |
| 99 { | 104 { |
| 100 CYG_TEST_INIT(); | 105 CYG_TEST_INIT(); |
| 101 | 106 |
| 102 CYG_TEST_INFO("Starting tests from testcase " __FILE__ " for C library " | 107 CYG_TEST_INFO("Starting tests from testcase " __FILE__ " for C library " |
| 103 "atoi() function"); | 108 "atoi() function"); |
