mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	spa: tests: remove double dot from names of test files
Previously, the configured test file would be named like the following: spa-include-test-spa_control_control_h..cpp fix that by removing one of the dots. Furthermore, use the already existing `find` object instead of calling `find_program` one more time.
This commit is contained in:
		
							parent
							
								
									bbbf5724be
								
							
						
					
					
						commit
						7cecb1567d
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -3,7 +3,7 @@
 | 
			
		|||
# Do it for C++ if possible (picks up C++-specific errors), otherwise for C.
 | 
			
		||||
find = find_program('find', required: false)
 | 
			
		||||
if find.found()
 | 
			
		||||
  spa_headers = run_command(find_program('find'),
 | 
			
		||||
  spa_headers = run_command(find,
 | 
			
		||||
                            meson.source_root() / 'spa' / 'include',
 | 
			
		||||
                            '-name', '*.h',
 | 
			
		||||
                            '-not', '-name', 'type-info.h',
 | 
			
		||||
| 
						 | 
				
			
			@ -11,7 +11,7 @@ if find.found()
 | 
			
		|||
                            '-printf', '%P\n')
 | 
			
		||||
  foreach spa_header : spa_headers.stdout().split('\n')
 | 
			
		||||
    if spa_header.endswith('.h')  # skip empty lines
 | 
			
		||||
      ext = have_cpp ? '.cpp' : '.c'
 | 
			
		||||
      ext = have_cpp ? 'cpp' : 'c'
 | 
			
		||||
      c = configuration_data()
 | 
			
		||||
      c.set('INCLUDE', spa_header)
 | 
			
		||||
      src = configure_file(input: 'spa-include-test-template.c',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue