lr_abort()、exit(-1) 和 return-1之间的区别

int status;

status = web_url("Login",
"URL=https://secure.computing.com//login.asp?user=(username)&session={ssid}",
"RecContentType=text/html", LAST );

if (status == LR_FAIL) {

lr_error_message("Error: %s", "Unable to login to secure computing");
lr_abort();   //与return -1 用法一样,退出 action中的脚本执行,直接运行 vuser_end中的脚本。而exit直接是中止脚本执行,不会去执行vuser_end中的脚本
}

posted on 2017-01-10 17:06  陳小诺  阅读(253)  评论(0编辑  收藏  举报