/[ascend]/trunk/ascend/utilities/test/test_ascEnvVar.c
ViewVC logotype

Diff of /trunk/ascend/utilities/test/test_ascEnvVar.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2524 by jpye, Thu Jan 19 21:36:01 2012 UTC revision 2525 by jpye, Thu Jan 19 22:01:31 2012 UTC
# Line 317  static void test_ascEnvVar(void) Line 317  static void test_ascEnvVar(void)
317    CU_TEST(1 == Asc_PutEnv("=my_path_is_silly"));        /* empty var name */    CU_TEST(1 == Asc_PutEnv("=my_path_is_silly"));        /* empty var name */
318    CU_TEST(1 == Asc_PutEnv("envar 1=my_path_is_silly")); /* embedded space in var */    CU_TEST(1 == Asc_PutEnv("envar 1=my_path_is_silly")); /* embedded space in var */
319    CU_TEST(1 == Asc_PutEnv("my_path_is_silly"));         /* no '=' */    CU_TEST(1 == Asc_PutEnv("my_path_is_silly"));         /* no '=' */
320      CU_TEST(1 == Asc_PutEnv(" = my_path_is_silly"));      /* empty var name, leading spaces */
321      CU_TEST(1 == Asc_PutEnv("   =my_path_is_silly"));      /* empty var name, leading spaces */
322    
323    memset(str_pathbig, '.', MAX_ENV_VAR_LENGTH-1);    memset(str_pathbig, '.', MAX_ENV_VAR_LENGTH-1);
324    str_pathbig[MAX_ENV_VAR_LENGTH-1] = '=';    str_pathbig[MAX_ENV_VAR_LENGTH-1] = '=';

Legend:
Removed from v.2524  
changed lines
  Added in v.2525

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22