#ifndef TESTGP11HELPERS_H_
#define TESTGP11HELPERS_H_

#include "gp11.h"

#define FAIL_RES(res, e) do { \
	g_assert ((res) ? FALSE : TRUE); \
	g_assert ((e) && (e)->message && "error should be set"); \
	g_clear_error (&e); \
	} while (0)

#define SUCCESS_RES(res, err) do { \
	if (!(res)) g_printerr ("error: %s\n", err && err->message ? err->message : ""); \
	g_assert ((res) ? TRUE : FALSE && "should have succeeded"); \
	g_clear_error (&err); \
	} while(0)


#define WAIT_UNTIL(cond) \
	while(!cond) g_main_iteration (TRUE);

#endif /*TESTGP11HELPERS_H_*/

#ifndef TESTGP11HELPERS_H_
#define TESTGP11HELPERS_H_

#include "gp11.h"

#define FAIL_RES(res, e) do { \
	g_assert ((res) ? FALSE : TRUE); \
	g_assert ((e) && (e)->message && "error should be set"); \
	g_clear_error (&e); \
	} while (0)

#define SUCCESS_RES(res, err) do { \
	if (!(res)) g_printerr ("error: %s\n", err && err->message ? err->message : ""); \
	g_assert ((res) ? TRUE : FALSE && "should have succeeded"); \
	g_clear_error (&err); \
	} while(0)


#define WAIT_UNTIL(cond) \
	while(!cond) g_main_context_iteration (NULL, TRUE);

#endif /*TESTGP11HELPERS_H_*/

Remove usage of deprecated glib stuff.
Remove usage of deprecated glib stuff.

	* configure.in: 
	* gp11/tests/gp11-test.h:
	* common/gkr-location.c: Remove usage of deprecated glib stuff. 

svn path=/trunk/; revision=1362
