summaryrefslogtreecommitdiff
path: root/src/tests/elementary/elm_code_file_test_load.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/elementary/elm_code_file_test_load.c')
-rw-r--r--src/tests/elementary/elm_code_file_test_load.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/tests/elementary/elm_code_file_test_load.c b/src/tests/elementary/elm_code_file_test_load.c
index fcdfb2f..a17548f 100644
--- a/src/tests/elementary/elm_code_file_test_load.c
+++ b/src/tests/elementary/elm_code_file_test_load.c
@@ -16,7 +16,8 @@ START_TEST (elm_code_file_load)
16 Elm_Code_File *file; 16 Elm_Code_File *file;
17 Elm_Code *code; 17 Elm_Code *code;
18 18
19 elm_init(1, NULL); 19 char *args[] = { "exe" };
20 elm_init(1, args);
20 code = elm_code_create(); 21 code = elm_code_create();
21 file = elm_code_file_open(code, path); 22 file = elm_code_file_open(code, path);
22 ck_assert_ptr_ne(realpath(path, real), NULL); 23 ck_assert_ptr_ne(realpath(path, real), NULL);
@@ -35,7 +36,8 @@ START_TEST (elm_code_file_load_lines)
35 Elm_Code_File *file; 36 Elm_Code_File *file;
36 Elm_Code *code; 37 Elm_Code *code;
37 38
38 elm_init(1, NULL); 39 char *args[] = { "exe" };
40 elm_init(1, args);
39 code = elm_code_create(); 41 code = elm_code_create();
40 file = elm_code_file_open(code, path); 42 file = elm_code_file_open(code, path);
41 43
@@ -52,7 +54,8 @@ START_TEST (elm_code_file_load_blank_lines)
52 Elm_Code_File *file; 54 Elm_Code_File *file;
53 Elm_Code *code; 55 Elm_Code *code;
54 56
55 elm_init(1, NULL); 57 char *args[] = { "exe" };
58 elm_init(1, args);
56 code = elm_code_create(); 59 code = elm_code_create();
57 file = elm_code_file_open(code, path); 60 file = elm_code_file_open(code, path);
58 61
@@ -69,7 +72,8 @@ START_TEST (elm_code_file_load_windows)
69 Elm_Code_File *file; 72 Elm_Code_File *file;
70 Elm_Code *code; 73 Elm_Code *code;
71 74
72 elm_init(1, NULL); 75 char *args[] = { "exe" };
76 elm_init(1, args);
73 code = elm_code_create(); 77 code = elm_code_create();
74 file = elm_code_file_open(code, path); 78 file = elm_code_file_open(code, path);
75 79
@@ -98,7 +102,8 @@ START_TEST (elm_code_file_load_content)
98 Elm_Code_File *file; 102 Elm_Code_File *file;
99 Elm_Code *code; 103 Elm_Code *code;
100 104
101 elm_init(1, NULL); 105 char *args[] = { "exe" };
106 elm_init(1, args);
102 code = elm_code_create(); 107 code = elm_code_create();
103 file = elm_code_file_open(code, path); 108 file = elm_code_file_open(code, path);
104 109
@@ -117,7 +122,8 @@ START_TEST (elm_code_file_line_ending_unix)
117 Elm_Code *code; 122 Elm_Code *code;
118 short len; 123 short len;
119 124
120 elm_init(1, NULL); 125 char *args[] = { "exe" };
126 elm_init(1, args);
121 code = elm_code_create(); 127 code = elm_code_create();
122 file = elm_code_file_open(code, path); 128 file = elm_code_file_open(code, path);
123 129
@@ -138,7 +144,8 @@ START_TEST (elm_code_file_line_ending_windows)
138 Elm_Code *code; 144 Elm_Code *code;
139 short len; 145 short len;
140 146
141 elm_init(1, NULL); 147 char *args[] = { "exe" };
148 elm_init(1, args);
142 code = elm_code_create(); 149 code = elm_code_create();
143 file = elm_code_file_open(code, path); 150 file = elm_code_file_open(code, path);
144 151