/[make]/make/tests/scripts/features/export
ViewVC logotype

Diff of /make/tests/scripts/features/export

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

revision 1.3 by psmith, Wed Sep 18 20:51:59 2002 UTC revision 1.4 by psmith, Tue Jul 12 04:35:13 2005 UTC
# Line 56  FOO= BAR= BAZ=baz BOZ=boz BITZ=bitz BOTZ Line 56  FOO= BAR= BAZ=baz BOZ=boz BITZ=bitz BOTZ
56    
57  # TEST 1: make sure vars inherited from the parent are exported  # TEST 1: make sure vars inherited from the parent are exported
58    
59  $ENV{FOO} = 1;  $extraENV{FOO} = 1;
60    
61  &run_make_with_options($makefile,"",&get_logfile,0);  &run_make_with_options($makefile,"",&get_logfile,0);
62    
# Line 65  FOO=foo BAR= BAZ=baz BOZ=boz BITZ=bitz B Line 65  FOO=foo BAR= BAZ=baz BOZ=boz BITZ=bitz B
65    
66  &compare_output($answer,&get_logfile(1));  &compare_output($answer,&get_logfile(1));
67    
 delete $ENV{FOO};  
   
68  # TEST 2: global export.  Explicit unexport takes precedence.  # TEST 2: global export.  Explicit unexport takes precedence.
69    
70  &run_make_with_options($makefile,"EXPORT_ALL=1",&get_logfile,0);  &run_make_with_options($makefile,"EXPORT_ALL=1",&get_logfile,0);
# Line 237  EOF Line 235  EOF
235    
236  close(MAKEFILE);  close(MAKEFILE);
237    
238  @ENV{qw(A B C D E F G H I J)} = qw(1 2 3 4 5 6 7 8 9 10);  @extraENV{qw(A B C D E F G H I J)} = qw(1 2 3 4 5 6 7 8 9 10);
239    
240  &run_make_with_options($makefile5,"",&get_logfile,0);  &run_make_with_options($makefile5,"",&get_logfile,0);
241  $answer = "A= B= C= D= E= F= G= H= I= J=\n";  $answer = "A= B= C= D= E= F= G= H= I= J=\n";
242  &compare_output($answer,&get_logfile(1));  &compare_output($answer,&get_logfile(1));
243    
 delete @ENV{qw(A B C D E F G H I J)};  
   
244    
245  # This tells the test driver that the perl test script executed properly.  # This tells the test driver that the perl test script executed properly.
246  1;  1;

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26