From 9688ec9cae1894f82cf615427228ea0a91e5d3ac Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Sun, 15 Nov 2009 16:33:07 +0000 Subject: [PATCH] See previous commit git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@166 ddfedd41-794f-dd11-ae45-00112f111e67 --- tests/Makefile.am | 6 +++++- tests/gridtest.c | 9 +++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 32c81c0..22b0c2b 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -3,7 +3,7 @@ AM_CPPFLAGS = -I$(top_srcdir) dist_data_DATA = chimara.ui chimara.menus glulxercise.ui -noinst_PROGRAMS = test-chimara test-multisession glulxercise +noinst_PROGRAMS = test-chimara test-multisession glulxercise plugin-loader test_chimara_SOURCES = main.c callbacks.c error.c error.h test_chimara_CPPFLAGS = $(AM_CPPFLAGS) \ @@ -21,6 +21,10 @@ glulxercise_SOURCES = glulxercise.c error.c error.h glulxercise_CFLAGS = @TEST_CFLAGS@ $(AM_CFLAGS) glulxercise_LDADD = @TEST_LIBS@ $(top_builddir)/libchimara/libchimara.la +plugin_loader_SOURCES = plugin-loader.c +plugin_loader_CFLAGS = @TEST_CFLAGS@ $(AM_CFLAGS) +plugin_loader_LDADD = @TEST_LIBS@ $(top_builddir)/libchimara/libchimara.la + pkglib_LTLIBRARIES = first.la model.la gridtest.la splittest.la multiwin.la PLUGIN_LIBTOOL_FLAGS=-module -avoid-version -export-symbols-regex "^glk_main$$" diff --git a/tests/gridtest.c b/tests/gridtest.c index d8922a1..c33a476 100644 --- a/tests/gridtest.c +++ b/tests/gridtest.c @@ -49,6 +49,15 @@ void glk_main(void) assert(buffer); fprintf(stderr, "Line input field until end of line\n"); + glk_window_move_cursor(mainwin, 10, 18); + glk_request_line_event(mainwin, buffer, 256, 0); + while(1) { + glk_select(&ev); + if(ev.type == evtype_LineInput) + break; + } + + fprintf(stderr, "Another line input field until end of line\n"); glk_window_move_cursor(mainwin, 10, 20); glk_request_line_event(mainwin, buffer, 256, 0); while(1) { -- 2.30.2