Skip to content

Commit

Permalink
fstests bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
rtm committed Aug 25, 2006
1 parent 80f292f commit a84585d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fstests.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,8 @@ subdir()
puts("link dd/xx/ff dd/dd/xx succeeded!\n");
exit();
}
if(link("dd/ff", "dd/dd/ff") == 0){
puts("link dd/ff dd/dd/ff succeeded!\n");
if(link("dd/ff", "dd/dd/ffff") == 0){
puts("link dd/ff dd/dd/ffff succeeded!\n");
exit();
}
if(mkdir("dd/ff/ff") == 0){
Expand All @@ -494,8 +494,8 @@ subdir()
puts("mkdir dd/xx/ff succeeded!\n");
exit();
}
if(mkdir("dd/dd/ff") == 0){
puts("mkdir dd/dd/ff succeeded!\n");
if(mkdir("dd/dd/ffff") == 0){
puts("mkdir dd/dd/ffff succeeded!\n");
exit();
}
if(unlink("dd/xx/ff") == 0){
Expand All @@ -507,7 +507,7 @@ subdir()
exit();
}

if(unlink("dd/dd/ff") != 0){
if(unlink("dd/dd/ffff") != 0){
puts("unlink dd/dd/ff failed\n");
exit();
}
Expand Down

0 comments on commit a84585d

Please sign in to comment.