X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dbind%2Fdbtest.c;h=abd241a1ccfe97852c7e58219e20523257312e23;hb=08ffe8cf81b44f282fa8b3c072772873e342e950;hp=d00486a497fdfae409a7e6294580a06d6f9c1bb0;hpb=02fbca369645d0e67401065e3bd795492487c639;p=platform%2Fupstream%2Fat-spi2-core.git diff --git a/dbind/dbtest.c b/dbind/dbtest.c index d00486a..abd241a 100644 --- a/dbind/dbtest.c +++ b/dbind/dbtest.c @@ -1,3 +1,22 @@ +/* + * Copyright 2008-2011 Novell, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library 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. + */ + #include #include #include @@ -383,17 +402,15 @@ void test_helpers () dbind_find_c_alignment ("(sss)"); dbind_find_c_alignment ("a(sss)"); dbind_find_c_alignment ("(s(s)yd(d)s)"); + dbind_find_c_alignment ("a{ss}"); fprintf (stderr, "helpers passed\n"); } int main (int argc, char **argv) { DBusConnection *bus; - DBusError err; - - dbus_error_init (&err); - bus = dbus_bus_get (DBUS_BUS_SESSION, &err); + bus = dbus_bus_get (DBUS_BUS_SESSION, NULL); test_helpers (); test_marshalling ();