[Lsb-messages] /var/www/bzr/lsb/devel/olver-core-tests r86: ncurses/ripoffline, spec is updated to LSB 4.1, bug fix
RomanZybinphoenix at ispras.ru
RomanZybinphoenix at ispras.ru
Thu Aug 23 19:20:36 UTC 2012
------------------------------------------------------------
revno: 86
committer: Roman Zybin phoenix at ispras.ru
branch nick: olver-core-tests
timestamp: Thu 2012-08-23 23:20:36 +0400
message:
ncurses/ripoffline, spec is updated to LSB 4.1, bug fix
modified:
src/model/ncurses/line/line_model.sec
src/model/ncurses/line/tests/line_scenario.sec
-------------- next part --------------
=== modified file 'src/model/ncurses/line/line_model.sec'
--- a/src/model/ncurses/line/line_model.sec 2008-09-19 15:48:23 +0000
+++ b/src/model/ncurses/line/line_model.sec 2012-08-23 19:20:36 +0000
@@ -725,6 +725,11 @@
/*
+Linux Standard Base Core Specification 4.1
+
+The interface ripoffline() shall behave as specified in X/Open Curses, except that
+ripoffline() shall return -1 if the number of lines that were ripped off exceeds five.
+
Linux Standard Base Core Specification 3.1
Copyright (c) 2004, 2005 Free Standards Group
@@ -850,9 +855,13 @@
if(old_rip_lines_count == MAX_RIP_LINES)
{
/*
+ * Outdated:
* Calls to ripoffline() above this limit have no effect but report success.
*/
- REQ("ripoffline.09", "Calls to ripoffline() above limit of 5 have no effect but report success", ripoffline_spec == SUT_EOK);
+ /* Actual:
+ * ripoffline() shall return -1 if the number of lines that were ripped off exceeds five.
+ */
+ REQ("ripoffline.09", "ripoffline() shall return -1 if the number of lines that were ripped off exceeds five", ripoffline_spec == -1);
}
else
{
=== modified file 'src/model/ncurses/line/tests/line_scenario.sec'
--- a/src/model/ncurses/line/tests/line_scenario.sec 2009-08-25 16:37:01 +0000
+++ b/src/model/ncurses/line/tests/line_scenario.sec 2012-08-23 19:20:36 +0000
@@ -212,10 +212,8 @@
{
iterate(IntT i4=-1;i4<2;i4++;i3)
{
- iterate(IntT i5=-1;i5<2;i5++;i4)
+ iterate(IntT i5=-1;i5<2;i5+=2;i4)
{
-
-
if(context.process != 0)
{
terminateNCursesProcess(context);
@@ -232,20 +230,17 @@
DUMP(" %d",i3);
ripoffline_spec(context, i3, true);
-
DUMP(" %d",i4);
ripoffline_spec(context, i4, true);
DUMP(" %d",i5);
ripoffline_spec(context, i5, true);
- /* // fedora fails on six ripoffline
- iterate(IntT i6=-1;i6<2;i6++;i5)
+ iterate(IntT i6=-1;i6<2;i6+=2;i5)
{
DUMP(" %d",i6);
ripoffline_spec(context, i6, true);
}
- /**/
DUMP("~\n");
More information about the lsb-messages
mailing list