# HG changeset patch # User bartv # Date 1233154220 0 # Node ID 9ab1839abc2c5bf420babef7ade979db831ebbb7 # Parent ceb6ac6f0ec1e857cad013394bf97c7d72c89732 The getenv test is N/A if the configuration does not have an environ variable. diff --git a/packages/language/c/libc/stdlib/current/ChangeLog b/packages/language/c/libc/stdlib/current/ChangeLog --- a/packages/language/c/libc/stdlib/current/ChangeLog +++ b/packages/language/c/libc/stdlib/current/ChangeLog @@ -1,3 +1,8 @@ +2009-01-28 Bart Veer + + * tests/getenv.c: N/A in configurations which do not provide + environ. + 2009-01-26 Jonathan Larmour * tests/abs.c: Allow to run if CYGPKG_LIBC_STARTUP isn't there. diff --git a/packages/language/c/libc/stdlib/current/tests/getenv.c b/packages/language/c/libc/stdlib/current/tests/getenv.c --- a/packages/language/c/libc/stdlib/current/tests/getenv.c +++ b/packages/language/c/libc/stdlib/current/tests/getenv.c @@ -54,6 +54,14 @@ #include // Main header for stdlib functions #include // Testcase API +#ifdef CYGPKG_ISOINFRA +# include +#endif +#if !defined(CYGINT_ISO_ENVIRON) || (CYGINT_ISO_ENVIRON == 0) +# define N_A_MSG "There is no implementation of the environ variable" +#endif + +#ifndef N_A_MSG // GLOBALS extern char **environ; // Standard environment definition @@ -145,4 +153,13 @@ main( int argc, char *argv[] ) } // main() +#else // N_A_MSG +externC void +cyg_start( void ) +{ + CYG_TEST_INIT(); + CYG_TEST_NA( N_A_MSG); +} +#endif + // EOF getenv.c