summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2019-09-17 12:48:25 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2019-09-17 12:48:25 +0200
commitf3cfcd8849dc4a7eb04418fcf34d0e4faa3f4aea (patch)
tree0009b8a013b648736602bdde203b4b4ee06edde0
parent9dc2575bb8e8e08f00068ade59e053209ca4acb1 (diff)
Revert "eina: add tests for the new Eina_Value convert functions."devs/stefan/travis-i386
This reverts commit e863a3d28a3bfcc227145a231c73355808e48bf7.
-rw-r--r--src/tests/eina/eina_test_value.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/tests/eina/eina_test_value.c b/src/tests/eina/eina_test_value.c
index a9e6e47de2..3ab9df1827 100644
--- a/src/tests/eina/eina_test_value.c
+++ b/src/tests/eina/eina_test_value.c
@@ -55,8 +55,6 @@ EFL_START_TEST(eina_value_test_simple)
55 fail_unless(c == 'x'); 55 fail_unless(c == 'x');
56 fail_unless(eina_value_char_get(value, &c)); 56 fail_unless(eina_value_char_get(value, &c));
57 fail_if(eina_value_double_get(value, &d)); 57 fail_if(eina_value_double_get(value, &d));
58 fail_unless(eina_value_int64_convert(value, &i64));
59 fail_unless(i64 == 'x');
60 fail_unless(c == 'x'); 58 fail_unless(c == 'x');
61 eina_value_flush(value); 59 eina_value_flush(value);
62 60
@@ -66,8 +64,6 @@ EFL_START_TEST(eina_value_test_simple)
66 fail_unless(s == 300); 64 fail_unless(s == 300);
67 fail_unless(eina_value_short_get(value, &s)); 65 fail_unless(eina_value_short_get(value, &s));
68 fail_if(eina_value_char_get(value, &c)); 66 fail_if(eina_value_char_get(value, &c));
69 fail_unless(eina_value_int_convert(value, &i));
70 fail_unless(i == 300);
71 fail_unless(s == 300); 67 fail_unless(s == 300);
72 eina_value_flush(value); 68 eina_value_flush(value);
73 69
@@ -77,8 +73,6 @@ EFL_START_TEST(eina_value_test_simple)
77 fail_unless(i == -12345); 73 fail_unless(i == -12345);
78 fail_unless(eina_value_int_get(value, &i)); 74 fail_unless(eina_value_int_get(value, &i));
79 fail_if(eina_value_short_get(value, &s)); 75 fail_if(eina_value_short_get(value, &s));
80 fail_unless(eina_value_long_convert(value, &l));
81 fail_unless(l == -12345);
82 fail_unless(i == -12345); 76 fail_unless(i == -12345);
83 eina_value_flush(value); 77 eina_value_flush(value);
84 78
@@ -88,8 +82,6 @@ EFL_START_TEST(eina_value_test_simple)
88 fail_unless(l == 0xb33f); 82 fail_unless(l == 0xb33f);
89 fail_unless(eina_value_long_get(value, &l)); 83 fail_unless(eina_value_long_get(value, &l));
90 fail_if(eina_value_int_get(value, &i)); 84 fail_if(eina_value_int_get(value, &i));
91 fail_unless(eina_value_int_convert(value, &i));
92 fail_unless(i == 0xb33f);
93 fail_unless(l == 0xb33f); 85 fail_unless(l == 0xb33f);
94 eina_value_flush(value); 86 eina_value_flush(value);
95 87
@@ -99,8 +91,6 @@ EFL_START_TEST(eina_value_test_simple)
99 fail_unless(i64 == 0x0011223344556677); 91 fail_unless(i64 == 0x0011223344556677);
100 fail_unless(eina_value_int64_get(value, &i64)); 92 fail_unless(eina_value_int64_get(value, &i64));
101 fail_if(eina_value_long_get(value, &l)); 93 fail_if(eina_value_long_get(value, &l));
102 fail_unless(eina_value_long_convert(value, &l));
103 fail_unless(l == 0x0011223344556677);
104 fail_unless(i64 == 0x0011223344556677); 94 fail_unless(i64 == 0x0011223344556677);
105 eina_value_flush(value); 95 eina_value_flush(value);
106 96
@@ -112,8 +102,6 @@ EFL_START_TEST(eina_value_test_simple)
112 fail_unless(uc == 200); 102 fail_unless(uc == 200);
113 fail_unless(eina_value_uchar_get(value, &uc)); 103 fail_unless(eina_value_uchar_get(value, &uc));
114 fail_if(eina_value_int64_get(value, &i64)); 104 fail_if(eina_value_int64_get(value, &i64));
115 fail_unless(eina_value_uint64_convert(value, &u64));
116 fail_unless(u64 == 200);
117 fail_unless(uc == 200); 105 fail_unless(uc == 200);
118 eina_value_flush(value); 106 eina_value_flush(value);
119 107
@@ -123,8 +111,6 @@ EFL_START_TEST(eina_value_test_simple)
123 fail_unless(us == 65535); 111 fail_unless(us == 65535);
124 fail_unless(eina_value_ushort_get(value, &us)); 112 fail_unless(eina_value_ushort_get(value, &us));
125 fail_if(eina_value_uchar_get(value, &uc)); 113 fail_if(eina_value_uchar_get(value, &uc));
126 fail_unless(eina_value_uint_convert(value, &ui));
127 fail_unless(ui == 65535);
128 fail_unless(us == 65535); 114 fail_unless(us == 65535);
129 eina_value_flush(value); 115 eina_value_flush(value);
130 116
@@ -134,8 +120,6 @@ EFL_START_TEST(eina_value_test_simple)
134 fail_unless(ui == 4000000000U); 120 fail_unless(ui == 4000000000U);
135 fail_unless(eina_value_uint_get(value, &ui)); 121 fail_unless(eina_value_uint_get(value, &ui));
136 fail_if(eina_value_ushort_get(value, &us)); 122 fail_if(eina_value_ushort_get(value, &us));
137 fail_unless(eina_value_ulong_convert(value, &ul));
138 fail_unless(ul == 4000000000U);
139 fail_unless(ui == 4000000000U); 123 fail_unless(ui == 4000000000U);
140 eina_value_flush(value); 124 eina_value_flush(value);
141 125
@@ -145,8 +129,6 @@ EFL_START_TEST(eina_value_test_simple)
145 fail_unless(ul == 3000000001UL); 129 fail_unless(ul == 3000000001UL);
146 fail_unless(eina_value_ulong_get(value, &ul)); 130 fail_unless(eina_value_ulong_get(value, &ul));
147 fail_if(eina_value_uint_get(value, &ui)); 131 fail_if(eina_value_uint_get(value, &ui));
148 fail_unless(eina_value_uint64_convert(value, &u64));
149 fail_unless(u64 == 3000000001UL);
150 fail_unless(ul == 3000000001UL); 132 fail_unless(ul == 3000000001UL);
151 eina_value_flush(value); 133 eina_value_flush(value);
152 134
@@ -156,8 +138,6 @@ EFL_START_TEST(eina_value_test_simple)
156 fail_unless(u64 == 0x1122334455667788); 138 fail_unless(u64 == 0x1122334455667788);
157 fail_unless(eina_value_uint64_get(value, &u64)); 139 fail_unless(eina_value_uint64_get(value, &u64));
158 fail_if(eina_value_ulong_get(value, &ul)); 140 fail_if(eina_value_ulong_get(value, &ul));
159 fail_unless(eina_value_ulong_convert(value, &ul));
160 fail_unless(ul == 0x1122334455667788);
161 fail_unless(u64 == 0x1122334455667788); 141 fail_unless(u64 == 0x1122334455667788);
162 eina_value_flush(value); 142 eina_value_flush(value);
163 143
@@ -168,8 +148,6 @@ EFL_START_TEST(eina_value_test_simple)
168 fail_unless(CHECK_FP(0.1234, f)); 148 fail_unless(CHECK_FP(0.1234, f));
169 fail_unless(eina_value_float_get(value, &f)); 149 fail_unless(eina_value_float_get(value, &f));
170 fail_if(eina_value_uint64_get(value, &u64)); 150 fail_if(eina_value_uint64_get(value, &u64));
171 fail_unless(eina_value_double_convert(value, &d));
172 fail_unless(CHECK_FP(0.1234, d));
173 fail_unless(CHECK_FP(0.1234, f)); 151 fail_unless(CHECK_FP(0.1234, f));
174 eina_value_flush(value); 152 eina_value_flush(value);
175 153
@@ -179,9 +157,7 @@ EFL_START_TEST(eina_value_test_simple)
179 fail_unless(CHECK_FP(34567.8, d)); 157 fail_unless(CHECK_FP(34567.8, d));
180 fail_unless(eina_value_double_get(value, &d)); 158 fail_unless(eina_value_double_get(value, &d));
181 fail_if(eina_value_float_get(value, &f)); 159 fail_if(eina_value_float_get(value, &f));
182 fail_unless(eina_value_float_convert(value, &f));
183 fail_unless(CHECK_FP(34567.8, d)); 160 fail_unless(CHECK_FP(34567.8, d));
184 fail_unless(CHECK_FP(34567.8, f));
185 eina_value_flush(value); 161 eina_value_flush(value);
186 162
187 eina_value_free(value); 163 eina_value_free(value);