From: Philip Chimento Date: Sun, 15 Nov 2009 16:33:07 +0000 (+0000) Subject: See previous commit X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=9688ec9cae1894f82cf615427228ea0a91e5d3ac;p=rodin%2Fchimara.git See previous commit git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@166 ddfedd41-794f-dd11-ae45-00112f111e67 --- 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) {