* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
- * Public License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
*
* Author: David Zeuthen <davidz@redhat.com>
*/
g_assert_cmpstr (method_name, ==, "Poke");
g_variant_get (parameters, "(&s)", &str);
- ret = g_strdup_printf ("You poked me with: `%s'", str);
+ ret = g_strdup_printf ("You poked me with: '%s'", str);
g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", ret));
g_free (ret);
}
break;
}
+ /* This is #ifdef G_OS_UNIX anyway, so just use g_test_trap_fork() */
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
if (!g_test_trap_fork (0, 0))
{
/* parent */
g_assert_cmpint (kill (first_child, SIGTERM), ==, 0);
return;
}
+ G_GNUC_END_IGNORE_DEPRECATIONS;
/* second child */
&error);
g_assert_no_error (error);
g_variant_get (ret, "(&s)", &str);
- g_assert_cmpstr (str, ==, "You poked me with: `I am the POKER!'");
+ g_assert_cmpstr (str, ==, "You poked me with: 'I am the POKER!'");
g_variant_unref (ret);
g_object_unref (connection);