[LTP] [PATCH 13/13]Add missing parameters for tst_brkm()

tangchen
2011-01-06T11:10:48Z

Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
---
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