Changeset 2608 in ProjectBuilder
- Timestamp:
- Apr 7, 2020, 1:12:15 AM (5 years ago)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
0.15.3/pb-modules/t/Conf.t
r2607 r2608 71 71 is($cnt, $content, "pb_conf_write Test"); 72 72 $nt++; 73 #unlink("$ENV{'TMPDIR'}/conf.yml");74 #unlink("$ENV{'TMPDIR'}/test.yml");73 unlink("$ENV{'TMPDIR'}/conf.yml"); 74 unlink("$ENV{'TMPDIR'}/test.yml"); 75 75 76 76 done_testing($nt); -
0.15.3/pb-modules/t/YAML.t
r2607 r2608 49 49 50 50 my $tab1 = pb_LoadFile("$ENV{'TMPDIR'}/conf1.yml"); 51 open(FILE,"> $ENV{'TMPDIR'}/conf1bis.yml") || die "Unable to create $ENV{'TMPDIR'}/conf1bis.yml";52 print FILE Dumper($tab1);53 close(FILE);51 #open(FILE,"> $ENV{'TMPDIR'}/conf1bis.yml") || die "Unable to create $ENV{'TMPDIR'}/conf1bis.yml"; 52 #print FILE Dumper($tab1); 53 #close(FILE); 54 54 my $cnt = pb_get_content("$ENV{'TMPDIR'}/conf1.yml"); 55 55 my $tab2 = pb_Dump($tab1); 56 open(FILE,"> $ENV{'TMPDIR'}/test1bis.yml") || die "Unable to create $ENV{'TMPDIR'}/test1bis.yml";57 print FILE Dumper($tab2);58 close(FILE);56 #open(FILE,"> $ENV{'TMPDIR'}/test1bis.yml") || die "Unable to create $ENV{'TMPDIR'}/test1bis.yml"; 57 #print FILE Dumper($tab2); 58 #close(FILE); 59 59 open(FILE,"> $ENV{'TMPDIR'}/test1.yml") || die "Unable to create $ENV{'TMPDIR'}/test1.yml"; 60 60 print FILE "$tab2"; … … 63 63 is($cnt, $content, "pb_DumpFile Test"); 64 64 $nt++; 65 unlink("$ENV{'TMPDIR'}/conf1.yml"); 66 unlink("$ENV{'TMPDIR'}/test1.yml"); 65 67 66 68 done_testing($nt); -
devel/pb-modules/t/Conf.t
r2607 r2608 71 71 is($cnt, $content, "pb_conf_write Test"); 72 72 $nt++; 73 #unlink("$ENV{'TMPDIR'}/conf.yml");74 #unlink("$ENV{'TMPDIR'}/test.yml");73 unlink("$ENV{'TMPDIR'}/conf.yml"); 74 unlink("$ENV{'TMPDIR'}/test.yml"); 75 75 76 76 done_testing($nt); -
devel/pb-modules/t/YAML.t
r2607 r2608 49 49 50 50 my $tab1 = pb_LoadFile("$ENV{'TMPDIR'}/conf1.yml"); 51 open(FILE,"> $ENV{'TMPDIR'}/conf1bis.yml") || die "Unable to create $ENV{'TMPDIR'}/conf1bis.yml";52 print FILE Dumper($tab1);53 close(FILE);51 #open(FILE,"> $ENV{'TMPDIR'}/conf1bis.yml") || die "Unable to create $ENV{'TMPDIR'}/conf1bis.yml"; 52 #print FILE Dumper($tab1); 53 #close(FILE); 54 54 my $cnt = pb_get_content("$ENV{'TMPDIR'}/conf1.yml"); 55 55 my $tab2 = pb_Dump($tab1); 56 open(FILE,"> $ENV{'TMPDIR'}/test1bis.yml") || die "Unable to create $ENV{'TMPDIR'}/test1bis.yml";57 print FILE Dumper($tab2);58 close(FILE);56 #open(FILE,"> $ENV{'TMPDIR'}/test1bis.yml") || die "Unable to create $ENV{'TMPDIR'}/test1bis.yml"; 57 #print FILE Dumper($tab2); 58 #close(FILE); 59 59 open(FILE,"> $ENV{'TMPDIR'}/test1.yml") || die "Unable to create $ENV{'TMPDIR'}/test1.yml"; 60 60 print FILE "$tab2"; … … 63 63 is($cnt, $content, "pb_DumpFile Test"); 64 64 $nt++; 65 unlink("$ENV{'TMPDIR'}/conf1.yml"); 66 unlink("$ENV{'TMPDIR'}/test1.yml"); 65 67 66 68 done_testing($nt);
Note:
See TracChangeset
for help on using the changeset viewer.