Commit 7b739c6e authored by 's avatar
Browse files

changed hardcoded /usr/local/etc/mapi/ (which may not exist or not have...

changed hardcoded /usr/local/etc/mapi/ (which may not exist or not have permission for a normal user) to 
/tmp


git-svn-id: file:///home/svn/mapi/trunk@815 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent a586cc23
...@@ -30,7 +30,7 @@ int main(int argc, char *argv[]) ...@@ -30,7 +30,7 @@ int main(int argc, char *argv[])
} }
DOT; DOT;
if((fid = mapi_apply_function(fd, "TO_FILE", MFF_PCAP, "/usr/local/etc/mapi/TEST_TRACE", limit))<0){ if((fid = mapi_apply_function(fd, "TO_FILE", MFF_PCAP, "/tmp/MAPI_TESTSUITE_DUMMY_TRACE", limit))<0){
fprintf(stderr, "Could not apply TO_FILE to flow %d\n", fd); fprintf(stderr, "Could not apply TO_FILE to flow %d\n", fd);
mapi_read_error( &err_no, error); mapi_read_error( &err_no, error);
fprintf(stderr,"Erorcode :%d description: %s \n" ,err_no, error); fprintf(stderr,"Erorcode :%d description: %s \n" ,err_no, error);
...@@ -69,7 +69,7 @@ DOT; ...@@ -69,7 +69,7 @@ DOT;
return -1; return -1;
} }
DOT; DOT;
if ((fd = mapi_create_offline_flow("/usr/local/etc/mapi/TEST_TRACE" , MFF_PCAP))<0){ if ((fd = mapi_create_offline_flow("/tmp/MAPI_TESTSUITE_DUMMY_TRACE" , MFF_PCAP))<0){
fprintf(stderr, "Could not create flow using '%s'\n", argv[1]); fprintf(stderr, "Could not create flow using '%s'\n", argv[1]);
mapi_read_error( &err_no, error); mapi_read_error( &err_no, error);
fprintf(stderr,"Erorcode :%d description: %s \n" ,err_no, error); fprintf(stderr,"Erorcode :%d description: %s \n" ,err_no, error);
...@@ -127,7 +127,7 @@ DOT; ...@@ -127,7 +127,7 @@ DOT;
if((fid = mapi_apply_function(fd, "TO_FILE", 13242312, "/usr/local/etc/mapi/ERROR_CASES", limit)) < 0){ if((fid = mapi_apply_function(fd, "TO_FILE", 13242312, "/tmp/MAPI_TESTSUTE_ERROR_CASES", limit)) < 0){
mapi_read_error( &err_no, error); mapi_read_error( &err_no, error);
printf("Testing error case1: Erorcode :%d description: %s \n" ,err_no, error); printf("Testing error case1: Erorcode :%d description: %s \n" ,err_no, error);
if(err_no!=7006){ if(err_no!=7006){
...@@ -153,7 +153,7 @@ DOT; ...@@ -153,7 +153,7 @@ DOT;
fprintf(stderr,"Erorcode :%d description: %s \n" ,err_no, error); fprintf(stderr,"Erorcode :%d description: %s \n" ,err_no, error);
return -1; return -1;
} }
system("rm -f /usr/local/etc/mapi/TEST_TRACE* /usr/local/etc/mapi/ERROR_CASES*"); system("rm -f /tmp/MAPI_TESTSUITE_DUMMY_TRACE* /tmp/MAPI_TESTSUTE_ERROR_CASES*");
if (!flag) { if (!flag) {
printf("\nTO_FILE Error Checking OK\n"); printf("\nTO_FILE Error Checking OK\n");
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment