summaryrefslogtreecommitdiff
path: root/src/tests/elementary/elm_test_fileselector.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-03-27 13:51:13 -0400
committerStefan Schmidt <stefan@osg.samsung.com>2018-04-05 11:10:26 +0200
commit624925fe6e9c72c639d47135d5ea70d4110ac1fe (patch)
treeb57c12a611bf3b4b492327a7fcb5722cd39dad5b /src/tests/elementary/elm_test_fileselector.c
parent730020c7d4a87daf60cbfbb3a0a912b4f75d8cb5 (diff)
tests: move to using checked fixtures for all test suites
individual tests should not need to explicitly call init/shutdown functions in most cases, and many did not properly do this anyway see followup commit which resolves some issues with eina tests ref T6813 ref T6811 Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Diffstat (limited to '')
-rw-r--r--src/tests/elementary/elm_test_fileselector.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/tests/elementary/elm_test_fileselector.c b/src/tests/elementary/elm_test_fileselector.c
index 1c648b078c..096cf368d7 100644
--- a/src/tests/elementary/elm_test_fileselector.c
+++ b/src/tests/elementary/elm_test_fileselector.c
@@ -11,8 +11,6 @@ EFL_START_TEST (elm_fileselector_legacy_type_check)
11 Evas_Object *win, *fileselector; 11 Evas_Object *win, *fileselector;
12 const char *type; 12 const char *type;
13 13
14 char *args[] = { "exe" };
15 elm_init(1, args);
16 win = elm_win_add(NULL, "fileselector", ELM_WIN_BASIC); 14 win = elm_win_add(NULL, "fileselector", ELM_WIN_BASIC);
17 15
18 fileselector = elm_fileselector_add(win); 16 fileselector = elm_fileselector_add(win);
@@ -25,7 +23,6 @@ EFL_START_TEST (elm_fileselector_legacy_type_check)
25 ck_assert(type != NULL); 23 ck_assert(type != NULL);
26 ck_assert(!strcmp(type, "elm_fileselector")); 24 ck_assert(!strcmp(type, "elm_fileselector"));
27 25
28 elm_shutdown();
29} 26}
30EFL_END_TEST 27EFL_END_TEST
31 28
@@ -34,8 +31,6 @@ EFL_START_TEST (elm_atspi_role_get)
34 Evas_Object *win, *fileselector; 31 Evas_Object *win, *fileselector;
35 Efl_Access_Role role; 32 Efl_Access_Role role;
36 33
37 char *args[] = { "exe" };
38 elm_init(1, args);
39 win = elm_win_add(NULL, "fileselector", ELM_WIN_BASIC); 34 win = elm_win_add(NULL, "fileselector", ELM_WIN_BASIC);
40 35
41 fileselector = elm_fileselector_add(win); 36 fileselector = elm_fileselector_add(win);
@@ -43,7 +38,6 @@ EFL_START_TEST (elm_atspi_role_get)
43 38
44 ck_assert(role == EFL_ACCESS_ROLE_FILE_CHOOSER); 39 ck_assert(role == EFL_ACCESS_ROLE_FILE_CHOOSER);
45 40
46 elm_shutdown();
47} 41}
48EFL_END_TEST 42EFL_END_TEST
49 43
@@ -63,9 +57,6 @@ EFL_START_TEST (elm_fileselector_selected)
63 char *path; 57 char *path;
64 Eina_Bool open, selected; 58 Eina_Bool open, selected;
65 59
66 char *args[] = { "exe" };
67 elm_init(1, args);
68
69 if (!eina_file_mkdtemp("elm_test-XXXXXX", &tmp_path)) 60 if (!eina_file_mkdtemp("elm_test-XXXXXX", &tmp_path))
70 { 61 {
71 /* can not test */ 62 /* can not test */
@@ -105,7 +96,6 @@ EFL_START_TEST (elm_fileselector_selected)
105 eina_stringshare_del(no_exist); 96 eina_stringshare_del(no_exist);
106 free(path); 97 free(path);
107 98
108 elm_shutdown();
109} 99}
110EFL_END_TEST 100EFL_END_TEST
111 101