summaryrefslogtreecommitdiff
path: root/tests/asynchronous/finish-name.c-expected
diff options
context:
space:
mode:
Diffstat (limited to 'tests/asynchronous/finish-name.c-expected')
-rw-r--r--tests/asynchronous/finish-name.c-expected90
1 files changed, 50 insertions, 40 deletions
diff --git a/tests/asynchronous/finish-name.c-expected b/tests/asynchronous/finish-name.c-expected
index e12dcc9b9..713c54147 100644
--- a/tests/asynchronous/finish-name.c-expected
+++ b/tests/asynchronous/finish-name.c-expected
@@ -261,7 +261,6 @@ foo_construct_finish (GAsyncResult* _res_)
static gboolean
foo_construct_async_co (FooNewAsyncData* _data_)
{
- Foo* self = NULL;
switch (_data_->_state_) {
case 0:
goto _state_0;
@@ -269,15 +268,18 @@ foo_construct_async_co (FooNewAsyncData* _data_)
g_assert_not_reached ();
}
_state_0:
- _data_->self = (Foo*) g_type_create_instance (_data_->object_type);
- 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);
+ {
+ Foo* self = NULL;
+ _data_->self = (Foo*) g_type_create_instance (_data_->object_type);
+ 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
@@ -347,16 +349,18 @@ foo_bar_co (FooBarData* _data_)
g_assert_not_reached ();
}
_state_0:
- _data_->_tmp0_ = g_strdup ("bar");
- _data_->result = _data_->_tmp0_;
- 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);
+ {
+ _data_->_tmp0_ = g_strdup ("bar");
+ _data_->result = _data_->_tmp0_;
+ 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
@@ -406,16 +410,18 @@ foo_real_baz_co (FooBazData* _data_)
g_assert_not_reached ();
}
_state_0:
- _data_->_tmp0_ = g_strdup ("baz");
- _data_->result = _data_->_tmp0_;
- 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);
+ {
+ _data_->_tmp0_ = g_strdup ("baz");
+ _data_->result = _data_->_tmp0_;
+ 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
@@ -706,16 +712,18 @@ bar_real_baz_co (BarBazData* _data_)
g_assert_not_reached ();
}
_state_0:
- _data_->_tmp0_ = g_strdup ("baz_bar");
- _data_->result = _data_->_tmp0_;
- 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);
+ {
+ _data_->_tmp0_ = g_strdup ("baz_bar");
+ _data_->result = _data_->_tmp0_;
+ 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;
}
Bar*
@@ -809,16 +817,18 @@ manam_co (ManamData* _data_)
g_assert_not_reached ();
}
_state_0:
- _data_->_tmp0_ = g_strdup ("manam");
- _data_->result = _data_->_tmp0_;
- 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);
+ {
+ _data_->_tmp0_ = g_strdup ("manam");
+ _data_->result = _data_->_tmp0_;
+ 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 Block1Data*