F_failure,
};
+ signal.id = 0;
+
for (int i = 0; i < 6; ++i) {
will_return(__wrap_close, true);
}
}
+void test__f_signal_close__returns_data_not(void **state) {
+
+ f_signal_t signal = f_signal_t_initialize;
+
+ {
+ const f_status_t status = f_signal_close(&signal);
+
+ assert_int_equal(status, F_data_not);
+ }
+}
+
void test__f_signal_close__works(void **state) {
f_signal_t signal = f_signal_t_initialize;
+ signal.id = 0;
+
{
- will_return(__wrap_close, false);
+ will_return(__wrap_close, 0);
const f_status_t status = f_signal_close(&signal);
extern void test__f_signal_close__parameter_checking(void **state);
/**
+ * Test that function works but returns F_data_not when file descriptor is -1.
+ *
+ * @see f_signal_close()
+ */
+extern void test__f_signal_close__returns_data_not(void **state);
+
+/**
* Test that function works.
*
* @see f_signal_close()
cmocka_unit_test(test__f_signal_action__works),
cmocka_unit_test(test__f_signal_close__fails),
+ cmocka_unit_test(test__f_signal_close__returns_data_not),
cmocka_unit_test(test__f_signal_close__works),
cmocka_unit_test(test__f_signal_mask__fails),