From fcb92c682957693839d50b2ae7b58e5e35c99659 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Thu, 1 Oct 2015 09:40:44 +0200 Subject: [PATCH] Use ortp_file_exist() instead of access() to fix build on Windows. --- tester/call_tester.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tester/call_tester.c b/tester/call_tester.c index ac36ddcc6..9eb4cc9ca 100644 --- a/tester/call_tester.c +++ b/tester/call_tester.c @@ -3532,7 +3532,7 @@ static void record_call(const char *filename, bool_t enableVideo, const char *vi wait_for_until(marie->lc,pauline->lc,&dummy,1,5000); linphone_call_stop_recording(callInst); end_call(marie, pauline); - BC_ASSERT_EQUAL(access(filepath, F_OK), 0, int, "%d"); + BC_ASSERT_EQUAL(ortp_file_exist(filepath, F_OK), 0, int, "%d"); } remove(filepath); ms_free(filepath); @@ -3581,7 +3581,7 @@ static void video_call_snapshot(void) { if((call_succeeded == TRUE) && (callInst != NULL)) { linphone_call_take_video_snapshot(callInst, filename); wait_for_until(marie->lc, pauline->lc, &dummy, 1, 5000); - BC_ASSERT_EQUAL(access(filename, F_OK), 0, int, "%d"); + BC_ASSERT_EQUAL(ortp_file_exist(filename, F_OK), 0, int, "%d"); remove(filename); end_call(marie, pauline); }