mirror of
				https://github.com/eledio-devices/thirdparty-littlefs.git
				synced 2025-10-31 00:32:38 +01:00 
			
		
		
		
	Added a rudimentary test framework
Tests can be found in 'tests/test_blah.sh' Tests can be run with 'make test'
This commit is contained in:
		
							
								
								
									
										2
									
								
								lfs.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								lfs.c
									
									
									
									
									
								
							| @@ -762,7 +762,7 @@ int lfs_mount(lfs_t *lfs, lfs_bd_t *bd, const struct lfs_bd_ops *bd_ops) { | ||||
|  | ||||
|     if ((err == LFS_ERROR_CORRUPT || | ||||
|             memcmp(superblock.d.magic, "littlefs", 8) != 0)) { | ||||
|         LFS_ERROR("Invalid superblock at %d %d\n", | ||||
|         LFS_ERROR("Invalid superblock at %d %d", | ||||
|                 superblock.pair[0], superblock.pair[1]); | ||||
|         return LFS_ERROR_CORRUPT; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user