Signed-off-by: Tang Chen <[email protected]>
---
testcases/kernel/syscalls/statfs/statfs03.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/testcases/kernel/syscalls/statfs/statfs03.c
b/testcases/kernel/syscalls/statfs/statfs03.c
index d60316b..226557e 100644
--- a/testcases/kernel/syscalls/statfs/statfs03.c
+++ b/testcases/kernel/syscalls/statfs/statfs03.c
@@ -140,7 +140,8 @@ void setup()
} else {
sprintf(path, "%s/%s", fname, fname);
if ((fileHandle = creat(path, 0444)) == -1) {
- tst_brkm(TFAIL|TERRNO, "creat (2) FAILED to creat temp file");
+ tst_brkm(TFAIL|TERRNO, cleanup,
+ "creat (2) FAILED to creat temp file");
}
}
@@ -176,4 +177,4 @@ void cleanup()
/* delete the test directory created in setup() */
tst_rmdir();
-}
\ No newline at end of file
+}
--
1.7.0.4
--
Best Regards,
Tang chen
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list