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:
Mike Blumenkrantz 2019-10-21 15:51:28 -04:00 committed by Marcel Hollerbach
parent 3ad0cf6c46
commit fea9fbec98
1 changed files with 2 additions and 3 deletions

View File

@ -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)