@@ -101,28 +101,36 @@ namespace xtd::drawing::tests {
101
101
102
102
void test_method_ (battery_caution) {
103
103
auto i = status_system_images::battery_caution ();
104
+ #if !defined(__linux__)
104
105
assert::are_equal (size {32 , 32 }, i.size (), csf_);
106
+ #endif
105
107
assert::are_not_equal (image::empty, i, csf_);
106
108
assert::are_equal (system_images::from_name (" battery-caution" ), i, csf_);
107
109
}
108
110
109
111
void test_method_ (battery_caution_with_specified_size) {
110
112
auto i = status_system_images::battery_caution ({64 , 64 });
113
+ #if !defined(__linux__)
111
114
assert::are_equal (size {64 , 64 }, i.size (), csf_);
115
+ #endif
112
116
assert::are_not_equal (image::empty, i, csf_);
113
117
assert::are_equal (system_images::from_name (" battery-caution" , size {64 , 64 }), i, csf_);
114
118
}
115
119
116
120
void test_method_ (battery_low) {
117
121
auto i = status_system_images::battery_low ();
122
+ #if !defined(__linux__)
118
123
assert::are_equal (size {32 , 32 }, i.size (), csf_);
124
+ #endif
119
125
assert::are_not_equal (image::empty, i, csf_);
120
126
assert::are_equal (system_images::from_name (" battery-low" ), i, csf_);
121
127
}
122
128
123
129
void test_method_ (battery_low_with_specified_size) {
124
130
auto i = status_system_images::battery_low ({64 , 64 });
131
+ #if !defined(__linux__)
125
132
assert::are_equal (size {64 , 64 }, i.size (), csf_);
133
+ #endif
126
134
assert::are_not_equal (image::empty, i, csf_);
127
135
assert::are_equal (system_images::from_name (" battery-low" , size {64 , 64 }), i, csf_);
128
136
}
0 commit comments