-/* $Id: t13.c,v 1.6 2006-03-31 15:58:05 adam Exp $
- Copyright (C) 1995-2005
+/* $Id: t13.c,v 1.14 2007-03-14 11:48:32 adam Exp $
+ Copyright (C) 1995-2007
Index Data ApS
This file is part of the Zebra server.
for more details.
You should have received a copy of the GNU General Public License
-along with Zebra; see the file LICENSE.zebra. If not, write to the
-Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
*/
/** test resources */
static char *xml_buf = "<gils><title>myx</title></gils>";
ZebraService zs;
ZebraHandle zh;
- SYSNO sysno = 0;
+ zint sysno = 0;
zs = zebra_start_res(0, 0, 0);
YAZ_CHECK(zs);
zebra_set_resource(zh, "profilePath", "${srcdir:-.}/../../tab");
- YAZ_CHECK_EQ(zebra_insert_record(zh /* handle */,
+ YAZ_CHECK_EQ(zebra_update_record(zh /* handle */,
+ action_insert,
"grs.sgml" /* record type */,
&sysno, 0 /* match */,
0 /* fname */,
- xml_buf, strlen(xml_buf),
- 0 /* force_update */),
+ xml_buf, strlen(xml_buf)),
ZEBRA_OK);
zebra_close(zh);
zebra_stop(zs);
}
+static void tst(int argc, char **argv)
+{
+ tst_res();
+ tst_no_config();
+}
+
TL_MAIN
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+