Loading ...
Sorry, an error occurred while loading the content.

Re: [ftpbench] Re: Platoon.h:4:18: error: list.h: No such file or directory

Expand Messages
  • Dan Kegel
    ... Fine; the right fix is - CHECKNE(0,log); + CHECKNE(0,(intptr_t)log); ... That s interesting. The failing code is 342 // Create a pipe so
    Message 1 of 4 , Apr 9 4:40 PM
    • 0 Attachment
      On Mon, Apr 9, 2012 at 2:45 PM, xuty1985 <xuty1985@...> wrote:
      > But I still failed to pass "make check":
      >
      > First, there's an error as following:
      > Poller_test.cc:389: error: cast from `FILE*' to `int' loses precision
      >
      > So I commented line #389, and "make check" again,

      Fine; the right fix is
      - CHECKNE(0,log);
      + CHECKNE(0,(intptr_t)log);

      > This time it tells:
      >
      > check: 0 != 22 at line 351 file Poller_test.cc

      That's interesting. The failing code is

      342 // Create a pipe so we have file descriptors
      to watch with Poller.
      343 // We use a pipe rather than a file or socket
      because it's easy to
      344 // generate readiness events by writing to one
      end of the pipe.
      345 CHECK(0, pipe(m_filedes));
      346 CHECK(0, setNonblocking(m_filedes[0]));
      347 CHECK(0, setNonblocking(m_filedes[1]));
      348
      349 // Watch our 2 test file descriptors, and
      count their readiness events.
      350 // The same client watches both file descriptors.
      351 CHECK(0, m_p.add(m_filedes[1], this, POLLOUT));
      352 CHECK(0, m_p.add(m_filedes[0], this, POLLIN|POLLPRI));

      It seems reasonable for a pipe to be writable straight off, so maybe Linux
      has changed its behavior over the years. You can probably ignore the
      failed test.
      - Dan
    Your message has been successfully submitted and would be delivered to recipients shortly.