mirror of
				https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
				synced 2025-10-31 08:08:51 +01:00 
			
		
		
		
	Fixed MTP to work with TWRP
This commit is contained in:
		
						commit
						f6dfaef42e
					
				
					 50820 changed files with 20846062 additions and 0 deletions
				
			
		
							
								
								
									
										23
									
								
								tools/perf/tests/python-use.c
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								tools/perf/tests/python-use.c
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,23 @@ | |||
| /*
 | ||||
|  * Just test if we can load the python binding. | ||||
|  */ | ||||
| 
 | ||||
| #include <stdio.h> | ||||
| #include <stdlib.h> | ||||
| #include "tests.h" | ||||
| 
 | ||||
| extern int verbose; | ||||
| 
 | ||||
| int test__python_use(void) | ||||
| { | ||||
| 	char *cmd; | ||||
| 	int ret; | ||||
| 
 | ||||
| 	if (asprintf(&cmd, "echo \"import sys ; sys.path.append('%s'); import perf\" | %s %s", | ||||
| 		     PYTHONPATH, PYTHON, verbose ? "" : "2> /dev/null") < 0) | ||||
| 		return -1; | ||||
| 
 | ||||
| 	ret = system(cmd) ? -1 : 0; | ||||
| 	free(cmd); | ||||
| 	return ret; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 awab228
						awab228