From mint-bounce@lists.fishpool.fi  Tue Jul 27 15:55:56 2010
Message-ID: <525300.825803669-sendEmail@descaro>
From: "Helmut Karlowski" <helmut.karlowski@ish.de>
To: "mint@lists.fishpool.fi" <mint@lists.fishpool.fi>
Cc: "helmut.karlowski@ish.de" <helmut.karlowski@ish.de>
Subject: Re: [MiNT] vttest
Date: Tue, 27 Jul 2010 19:53:09 +0000
X-Mailer: sendEmail-1.55
MIME-Version: 1.0
Content-Type: multipart/related; boundary="----MIME delimiter for sendEmail-567324.291522713"
X-Antivirus: avast! (VPS 100727-0, 27.07.2010), Outbound message
X-Antivirus-Status: Clean
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: helmut.karlowski@ish.de
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>

This is a multi-part message in MIME format. To properly display this message you need a MIME-Version 1.0 compliant Email program.

------MIME delimiter for sendEmail-567324.291522713
Content-Type: text/plain;
  charset="iso-8859-1"
  Content-Transfer-Encoding: quoted-printable

I've just managed to get vttest to run on conholio as well as toswin
(using Vincent's gdb ;) ).

It was mostly ok in the kernel already, vttest was hanging when it
expected a newline (\n) but received a carriage-return (\r) in the
vt100-tests (all except vt52 (7.)).

I then patched unix_io.c of vttest to also accept carriage-returns and
with one exeption now it runs ok. I did not chose all tests.

I'm not sure who's right: MiNT or vttest - it sets (and resets) the
sg_flag CRMOD, so some parts worked right away without change (the vt52-test), some
after the patch.

This is the patch:

--- unix_io.c   Thu Dec 31 22:29:00 2009
+++ ../unix_io.c        Tue Jul 27 21:50:54 2010
@@ -209,7 +209,7 @@
   reading = TRUE;
   do {
     read(0, &ch, 1);
-  } while (ch != '\n' && !brkrd);
+  } while ( !(ch == '\n' || ch == '\r') && !brkrd);
   if (brkrd)
     give_up(SIGTERM);
   reading = FALSE;


-Helmut


------MIME delimiter for sendEmail-567324.291522713--


