summaryrefslogtreecommitdiff
path: root/apps/app_test.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2007-06-22 04:35:12 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2007-06-22 04:35:12 +0000
commita1bc8231365c9bdea0d3881a8cd056f6abecb07b (patch)
tree45f02eef0ac120e193459b71f73a7b62b7db8784 /apps/app_test.c
parent0b98b2a659dca13c8b7fe4a6682ede8e2ae110b7 (diff)
Issue 9990 - New API ast_mkdir, which creates parent directories as necessary (and is faster than an outcall to mkdir -p)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@71040 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_test.c')
-rw-r--r--apps/app_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_test.c b/apps/app_test.c
index a41403a18..8bf7b9e8c 100644
--- a/apps/app_test.c
+++ b/apps/app_test.c
@@ -177,7 +177,7 @@ static int testclient_exec(struct ast_channel *chan, void *data)
if ((res >=0) && (!ast_strlen_zero(testid))) {
/* Make the directory to hold the test results in case it's not there */
snprintf(fn, sizeof(fn), "%s/testresults", ast_config_AST_LOG_DIR);
- mkdir(fn, 0777);
+ ast_mkdir(fn, 0777);
snprintf(fn, sizeof(fn), "%s/testresults/%s-client.txt", ast_config_AST_LOG_DIR, testid);
if ((f = fopen(fn, "w+"))) {
setlinebuf(f);
@@ -338,7 +338,7 @@ static int testserver_exec(struct ast_channel *chan, void *data)
/* Got a Test ID! Whoo hoo! */
/* Make the directory to hold the test results in case it's not there */
snprintf(fn, sizeof(fn), "%s/testresults", ast_config_AST_LOG_DIR);
- mkdir(fn, 0777);
+ ast_mkdir(fn, 0777);
snprintf(fn, sizeof(fn), "%s/testresults/%s-server.txt", ast_config_AST_LOG_DIR, testid);
if ((f = fopen(fn, "w+"))) {
setlinebuf(f);