Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-1413

MesosContainerizerExecuteTest.IoRedirection fails on OSX

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.19.0
    • 0.19.0
    • build
    • OSX

    Description

      [----------] 1 test from MesosContainerizerExecuteTest
      [ RUN      ] MesosContainerizerExecuteTest.IoRedirection
      ../../src/tests/containerizer_tests.cpp:486: Failure
      Value of: (os::read(path::join(directory, "stderr"))).get()
        Actual: "-n this is stderr\n"
      Expected: errMsg
      Which is: "this is stderr"
      ../../src/tests/containerizer_tests.cpp:487: Failure
      Value of: (os::read(path::join(directory, "stdout"))).get()
        Actual: "-n this is stderr\n"
      Expected: outMsg
      Which is: "this is stderr"
      [  FAILED  ] MesosContainerizerExecuteTest.IoRedirection (2003 ms)
      [----------] 1 test from MesosContainerizerExecuteTest (2003 ms total)
      

      OSX manpage on "echo":

      The echo utility writes any specified operands, separated by single blank (` ') characters and followed by a newline (`\n') character, to the standard output.

      The following option is available:

      -n Do not print the trailing newline character. This may also be achieved by appending `\c' to the end of the string, as is done by iBCS2 compatible systems. Note that this option as well as the effect of `\c' are implementation-defined in IEEE Std 1003.1-2001 (``POSIX.1'')
      as amended by Cor. 1-2002. Applications aiming for maximum portability are strongly encouraged to use printf(1) to suppress the newline character.

      Some shells may provide a builtin echo command which is similar or identical to this utility. Most notably, the builtin echo in sh(1) does not accept the -n option. Consult the builtin(1) manual page.

      Attachments

        Issue Links

          Activity

            People

              tillt Till Toenshoff
              tillt Till Toenshoff
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: