mirror of
				https://gitee.com/jiuyilian/embedded-framework.git
				synced 2025-10-24 18:20:15 -04:00 
			
		
		
		
	[zhoulongyu]: 增加和完善配置文件的test用例
This commit is contained in:
		
							parent
							
								
									efa068fea2
								
							
						
					
					
						commit
						1d214080ce
					
				| 
						 | 
				
			
			@ -13,6 +13,15 @@ namespace IpcConfigTest
 | 
			
		|||
        IIpcConfig::GetInstance()->Init();
 | 
			
		||||
        int testNum = IIpcConfig::GetInstance()->GetInt(IpcConfigKey::TEST_NUM);
 | 
			
		||||
        LogInfo("Get testNum = %d\n", testNum);
 | 
			
		||||
        const int num999 = 999;
 | 
			
		||||
        IIpcConfig::GetInstance()->SetInt(IpcConfigKey::TEST_NUM, num999);
 | 
			
		||||
 | 
			
		||||
        const std::string testString = IIpcConfig::GetInstance()->GetString(IpcConfigKey::TEST_STRING);
 | 
			
		||||
        LogInfo("Get testString = %s\n", testString.c_str());
 | 
			
		||||
        const std::string string = "define";
 | 
			
		||||
        IIpcConfig::GetInstance()->SetString(IpcConfigKey::TEST_STRING, string);
 | 
			
		||||
        IIpcConfig::GetInstance()->ConfigFileSave();
 | 
			
		||||
 | 
			
		||||
        IIpcConfig::GetInstance()->UnInit();
 | 
			
		||||
        ILogUnInit();
 | 
			
		||||
        DestroyLogModule();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user