mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-31 20:18:18 +00:00 
			
		
		
		
	As part of bringing the master branch back in to next, we need to allow for all of these changes to exist here. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
		
			
				
	
	
		
			20 lines
		
	
	
		
			352 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			352 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include <command.h>
 | |
| #include <env_attr.h>
 | |
| #include <test/env.h>
 | |
| #include <test/ut.h>
 | |
| 
 | |
| static int env_test_fdt_import(struct unit_test_state *uts)
 | |
| {
 | |
| 	const char *val;
 | |
| 
 | |
| 	val = env_get("from_fdt");
 | |
| 	ut_assertnonnull(val);
 | |
| 	ut_asserteq_str("yes", val);
 | |
| 
 | |
| 	val = env_get("fdt_env_path");
 | |
| 	ut_assertnull(val);
 | |
| 
 | |
| 	return 0;
 | |
| }
 | |
| ENV_TEST(env_test_fdt_import, 0);
 |