fix: noconfirm auto-selects first AUR match
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int meson_test_side_effect = EXIT_FAILURE;
|
||||
|
||||
int meson_test_set_side_effect(void) {
|
||||
meson_test_side_effect = EXIT_SUCCESS;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
// meson_test_side_effect is set only if assert is executed
|
||||
assert(meson_test_set_side_effect());
|
||||
return meson_test_side_effect;
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
project('ndebug enabled', 'c',
|
||||
default_options : [
|
||||
'buildtype=debugoptimized',
|
||||
'b_ndebug=if-release',
|
||||
])
|
||||
|
||||
test('exe', executable('main', 'main.c'))
|
||||
Reference in New Issue
Block a user