pike.git / src / modules / _Stdio / testsuite.in

version» Context lines:

pike.git/src/modules/_Stdio/testsuite.in:604:    if( i->_size_object() != 0 ) return -2;       i->add(" data goes here");    if( i->num_malloc!= 1 ) return -3;    if( i->_size_object() == 0 ) return -4;       i->read();    if( i->_size_object() == 0 ) return -5;       i->add("zero copy"); -  if( !has_value(sprintf("%O",i), "string") ) return -6; +     -  +  // NB: This was "string" in previous versions of Stdio.Buffer. +  if( !has_value(sprintf("%O",i), "allocated") ) return -6; +     i->add(" indeed"); /* note: shorter than first string. */    if( i->_size_object() == 0 ) return -7;       if( i->num_malloc != 1 ) return -8;    /* -  crete - no move +  create - no move    add - realloc + move    read - no move (buffer now empty)    add - point to str    add - move to malloc arena    add - no move    */    return i->num_move <= 2;   ]], 1)