bug-sh-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sh-utils 2.0 on HP/UX: make check fails on stty row-col-1 check


From: Piotr . Sulecki
Subject: sh-utils 2.0 on HP/UX: make check fails on stty row-col-1 check
Date: Tue, 09 Sep 2003 12:55:26 +0200

Ave!

I have just built sh-utils on HP/UX 10.20, with GCC 3.3.1 
as a compiler. Everything went fine, except 'make check'
complained about stty row-col-1 test. Failed tests were #2,
#5, #6 and #7.

It turned out that sometimes 'stty size' puts an extra
space before the first number being output. I don't know
if it's acceptable or not. If yes, the following patch to
the script in question should quiet these errors.

If there are any questions, please ask.

Regards,

Piotr Sulecki
Institute of Metal Cutting
Cracow, Poland.
---------------- patch follows -------------------
--- sh-utils-2.0/tests/stty/row-col-1   1999-08-10 09:14:40.000000000
+0200
+++ sh-utils-2.0/tests/stty/row-col-1-new       2003-09-09
12:48:39.000000000 +0200
@@ -47,7 +47,9 @@
     echo "test $test_name... " | tr -d '\012'
   fi
   stty $args || exit 1
-  test x"`stty size 2> /dev/null`" = "x$expected_result" \
+  result=`stty size 2> /dev/null`
+  result=`echo $result`
+  test "x$result" = "x$expected_result" \
     && ok=ok || ok=FAIL fail=1
   test "$VERBOSE" = yes && echo $ok
   shift; shift; shift




reply via email to

[Prev in Thread] Current Thread [Next in Thread]