diff options
Diffstat (limited to 'tests/asynchronous/bug646945.c-expected')
-rw-r--r-- | tests/asynchronous/bug646945.c-expected | 60 |
1 files changed, 34 insertions, 26 deletions
diff --git a/tests/asynchronous/bug646945.c-expected b/tests/asynchronous/bug646945.c-expected index 8eb5f5b13..927eb3698 100644 --- a/tests/asynchronous/bug646945.c-expected +++ b/tests/asynchronous/bug646945.c-expected @@ -213,14 +213,16 @@ foo_real_method1_co (FooMethod1Data* _data_) g_assert_not_reached (); } _state_0: - g_task_return_pointer (_data_->_async_result, _data_, NULL); - if (_data_->_state_ != 0) { - while (!g_task_get_completed (_data_->_async_result)) { - g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); + { + g_task_return_pointer (_data_->_async_result, _data_, NULL); + if (_data_->_state_ != 0) { + while (!g_task_get_completed (_data_->_async_result)) { + g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); + } } + g_object_unref (_data_->_async_result); + return FALSE; } - g_object_unref (_data_->_async_result); - return FALSE; } void @@ -338,14 +340,16 @@ bar_real_method2_co (BarMethod2Data* _data_) g_assert_not_reached (); } _state_0: - g_task_return_pointer (_data_->_async_result, _data_, NULL); - if (_data_->_state_ != 0) { - while (!g_task_get_completed (_data_->_async_result)) { - g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); + { + g_task_return_pointer (_data_->_async_result, _data_, NULL); + if (_data_->_state_ != 0) { + while (!g_task_get_completed (_data_->_async_result)) { + g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); + } } + g_object_unref (_data_->_async_result); + return FALSE; } - g_object_unref (_data_->_async_result); - return FALSE; } void @@ -445,15 +449,17 @@ baz_real_method1_co (BazMethod1Data* _data_) g_assert_not_reached (); } _state_0: - baz_real_method1_co (_data_); - g_task_return_pointer (_data_->_async_result, _data_, NULL); - if (_data_->_state_ != 0) { - while (!g_task_get_completed (_data_->_async_result)) { - g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); + { + baz_real_method1_co (_data_); + g_task_return_pointer (_data_->_async_result, _data_, NULL); + if (_data_->_state_ != 0) { + while (!g_task_get_completed (_data_->_async_result)) { + g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); + } } + g_object_unref (_data_->_async_result); + return FALSE; } - g_object_unref (_data_->_async_result); - return FALSE; } static void @@ -500,15 +506,17 @@ baz_real_method2_co (BazMethod2Data* _data_) g_assert_not_reached (); } _state_0: - baz_real_method2_co (_data_); - g_task_return_pointer (_data_->_async_result, _data_, NULL); - if (_data_->_state_ != 0) { - while (!g_task_get_completed (_data_->_async_result)) { - g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); + { + baz_real_method2_co (_data_); + g_task_return_pointer (_data_->_async_result, _data_, NULL); + if (_data_->_state_ != 0) { + while (!g_task_get_completed (_data_->_async_result)) { + g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); + } } + g_object_unref (_data_->_async_result); + return FALSE; } - g_object_unref (_data_->_async_result); - return FALSE; } Baz* |