fstests bugs
This commit is contained in:
parent
80f292f830
commit
a84585de63
10
fstests.c
10
fstests.c
|
@ -482,8 +482,8 @@ subdir()
|
||||||
puts("link dd/xx/ff dd/dd/xx succeeded!\n");
|
puts("link dd/xx/ff dd/dd/xx succeeded!\n");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
if(link("dd/ff", "dd/dd/ff") == 0){
|
if(link("dd/ff", "dd/dd/ffff") == 0){
|
||||||
puts("link dd/ff dd/dd/ff succeeded!\n");
|
puts("link dd/ff dd/dd/ffff succeeded!\n");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
if(mkdir("dd/ff/ff") == 0){
|
if(mkdir("dd/ff/ff") == 0){
|
||||||
|
@ -494,8 +494,8 @@ subdir()
|
||||||
puts("mkdir dd/xx/ff succeeded!\n");
|
puts("mkdir dd/xx/ff succeeded!\n");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
if(mkdir("dd/dd/ff") == 0){
|
if(mkdir("dd/dd/ffff") == 0){
|
||||||
puts("mkdir dd/dd/ff succeeded!\n");
|
puts("mkdir dd/dd/ffff succeeded!\n");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
if(unlink("dd/xx/ff") == 0){
|
if(unlink("dd/xx/ff") == 0){
|
||||||
|
@ -507,7 +507,7 @@ subdir()
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(unlink("dd/dd/ff") != 0){
|
if(unlink("dd/dd/ffff") != 0){
|
||||||
puts("unlink dd/dd/ff failed\n");
|
puts("unlink dd/dd/ff failed\n");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue