From e75066cc9261c65e835c7caf2e7bc89c7f468bfa Mon Sep 17 00:00:00 2001
From: Jan Breuer <jan.breuer@jaybee.cz>
Date: 摹曛, 27 8月 2015 23:23:35 +0800
Subject: [PATCH] Try to fix travis build

---
 examples/test-parser/main.c |   19 +++++--------------
 1 files changed, 5 insertions(+), 14 deletions(-)

diff --git a/examples/test-parser/main.c b/examples/test-parser/main.c
index c4b3155..7c562ee 100644
--- a/examples/test-parser/main.c
+++ b/examples/test-parser/main.c
@@ -52,7 +52,7 @@
 int SCPI_Error(scpi_t * context, int_fast16_t err) {
     (void) context;
 
-    fprintf(stderr, "**ERROR: %d, \"%s\"\r\n", (int32_t) err, SCPI_ErrorTranslate(err));
+    fprintf(stderr, "**ERROR: %d, \"%s\"\r\n", (int16_t) err, SCPI_ErrorTranslate(err));
     return 0;
 }
 
@@ -63,18 +63,6 @@
         fprintf(stderr, "**CTRL %02x: 0x%X (%d)\r\n", ctrl, val, val);
     }
     return SCPI_RES_OK;
-}
-
-/**
- * Callback for *TST? command
- * 
- * It returns directly the result of the test
- * @param context
- * @return 0 means "test was OK", other values means, that some error bits are set
- */
-int32_t SCPI_Test(scpi_t * context) {
-    fprintf(stderr, "**Test\r\n");
-    return 0;
 }
 
 scpi_result_t SCPI_Reset(scpi_t * context) {
@@ -125,7 +113,10 @@
     TEST_SCPI_INPUT("meas:volt:dc? def, 0.00001\r\n");
     TEST_SCPI_INPUT("meas:volt:dc? 0.00001\r\n");
 
-
+    TEST_SCPI_INPUT("test:text 'a'\r\n");
+    TEST_SCPI_INPUT("test:text 'a a'\r\n");
+    TEST_SCPI_INPUT("test:text 'aa a'\r\n");
+    TEST_SCPI_INPUT("test:text 'aaa aaaa'\r\n");
     //printf("%.*s %s\r\n",  3, "asdadasdasdasdas", "b");
     // interactive demo
     //char smbuffer[10];

--
Gitblit v1.9.1