forked from enlightenment/efl
tests/elm: make argv a static char so it never goes out of scope and crashes
Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D10511
This commit is contained in:
parent
6fa18994b5
commit
a00307d266
|
@ -24,17 +24,16 @@ Eina_Bool abort_on_warnings = EINA_FALSE;
|
|||
|
||||
void elm_test_init(TCase *tc);
|
||||
|
||||
static char *args[] = { "exe" };
|
||||
|
||||
SUITE_INIT(elm)
|
||||
{
|
||||
char *args[] = { "exe" };
|
||||
ck_assert_int_eq(elm_init(1, args), 1);
|
||||
}
|
||||
|
||||
void
|
||||
_elm2_suite_init(void)
|
||||
{
|
||||
char *args[] = { "exe" };
|
||||
|
||||
if (getpid() != main_pid)
|
||||
{
|
||||
if (abort_on_warnings)
|
||||
|
|
Loading…
Reference in New Issue