Do not build tests in release mode
Assertions would not be executed. And as a side effect, it causes "unused variable" warnings.
This commit is contained in:
parent
ba1b36758e
commit
e4cebc8d4c
1 changed files with 39 additions and 36 deletions
|
@ -141,6 +141,8 @@ install_man('scrcpy.1')
|
||||||
|
|
||||||
### TESTS
|
### TESTS
|
||||||
|
|
||||||
|
# do not build tests in release (assertions would not be executed at all)
|
||||||
|
if get_option('buildtype') == 'debug'
|
||||||
tests = [
|
tests = [
|
||||||
['test_buffer_util', [
|
['test_buffer_util', [
|
||||||
'tests/test_buffer_util.c'
|
'tests/test_buffer_util.c'
|
||||||
|
@ -178,3 +180,4 @@ foreach t : tests
|
||||||
c_args: ['-DSDL_MAIN_HANDLED'])
|
c_args: ['-DSDL_MAIN_HANDLED'])
|
||||||
test(t[0], exe)
|
test(t[0], exe)
|
||||||
endforeach
|
endforeach
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in a new issue