#include <stdio.h>#include <stdlib.h>#include <string.h>#include <inttypes.h>#include <taos.h>#include "os.h"#include "taosdef.h"#include "taoserror.h"#include "tconfig.h"#include "tglobal.h"#include "tulog.h"#include "tsocket.h"#include "tutil.h"externSGlobalCfg*taosGetConfigOption(constchar*option);intmain(intargc,char*argv[]){printf("start to test\n");//case1://Test config to wrong typeconstcharconfig1[128]="{\"cache\":\"4\"}";//input the parameter which want to be configuredtaos_set_config(config1);//configure the parameterSGlobalCfg*cfg1;cfg1=taosGetConfigOption("cache");//check the option resultif(cfg1->cfgStatus==3)//If cfgStatus is 3,it means configure is successprintf("config cache to '4'success!\n");elseprintf("config cache failure!\n");return0;}