Signed-off-by: Wei,Jiangang <weijg.f...@cn.fujitsu.com> --- testcases/kernel/io/direct_io/dma_thread_diotest.c | 2 +- testcases/kernel/syscalls/ftruncate/ftruncate04.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/testcases/kernel/io/direct_io/dma_thread_diotest.c b/testcases/kernel/io/direct_io/dma_thread_diotest.c index 877b707..6ac1dec 100644 --- a/testcases/kernel/io/direct_io/dma_thread_diotest.c +++ b/testcases/kernel/io/direct_io/dma_thread_diotest.c @@ -429,7 +429,7 @@ static void cleanup(void) { free(buffer); - if (mount_flag && umount(MNT_POINT) < 0) + if (mount_flag && tst_umount(MNT_POINT) < 0) tst_resm(TWARN | TERRNO, "umount device:%s failed", device); free(worker); diff --git a/testcases/kernel/syscalls/ftruncate/ftruncate04.c b/testcases/kernel/syscalls/ftruncate/ftruncate04.c index 99aebfe..2136227 100644 --- a/testcases/kernel/syscalls/ftruncate/ftruncate04.c +++ b/testcases/kernel/syscalls/ftruncate/ftruncate04.c @@ -248,7 +248,7 @@ static void setup(void) static void cleanup(void) { - if (mount_flag && umount(MOUNT_DIR)) + if (mount_flag && tst_umount(MOUNT_DIR)) tst_resm(TWARN | TERRNO, "umount(%s) failed", device); if (device) -- 1.9.3 ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list