> On May 14, 2018, 9:09 p.m., Andrew Schwartzmeyer wrote:
> > 3rdparty/libprocess/src/tests/subprocess_tests.cpp
> > Lines 779-796 (patched)
> > <https://reviews.apache.org/r/67075/diff/1/?file=2019562#file2019562line787>
> >
> >     This is a good and informative comment; however, [Mesos 
> > style](https://mesos.apache.org/documentation/latest/c++-style-guide/#comments)
> >  wants:
> >     
> >     * End each sentence within a comment with a punctuation mark (please 
> > note that we generally prefer periods); this applies to incomplete 
> > sentences as well.
> >     * Use backticks when quoting code excerpts or object/variable/function 
> > names.
> >     
> >     So something like:
> >     
> >     ```
> >       // The Windows version of `echo` is a built-in of the command
> >       // prompt, and it simply reproduces the entire command line string.
> >       // However, the flags class (and thus this test) is expecting the
> >       // semantics of a native binary interpreting the command line
> >       // arguments via the Windows API `CommandLineToArgv`. When a regular
> >       // Windows application (in contrast to `echo`) gets command line
> >       // arguments, the text is processed automatically by
> >       // `CommandLineToArgv`, which converts the command line string into
> >       // an array. For example, this is the output of `echo`:
> >       //
> >       //    > cmd.exe /c echo "--s3=\"geek\""
> >       //    "--s3=\"geek\""
> >       //
> >       // With `test-echo.exe`, a small native binary that just prints its
> >       // arguments, the output is:
> >       //
> >       //     > test-echo.exe "--s3=\"geek\""
> >       //     --s3="geek"
> >       //
> >       // This is the behavior expected by the test as the POSIX version of
> >       // `echo` is a native binary.
> >     ```

Thanks for writing that up. It is so well written.


- Radhika


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/67075/#review203066
-----------------------------------------------------------


On May 16, 2018, 5:55 p.m., Radhika Jandhyala wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/67075/
> -----------------------------------------------------------
> 
> (Updated May 16, 2018, 5:55 p.m.)
> 
> 
> Review request for mesos and Andrew Schwartzmeyer.
> 
> 
> Bugs: https://issues.apache.org/jira/browse/MESOS-8857
>     
> https://issues.apache.org/jira/browse/https://issues.apache.org/jira/browse/MESOS-8857
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Review: https://reviews.apache.org/r/67152
> 
> Remove '\\' prefix for test-echo while joining with build dir
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/src/tests/CMakeLists.txt 
> 1b2d75d2b576e528db49635fce54174d56a29c59 
>   3rdparty/libprocess/src/tests/subprocess_tests.cpp 
> 269918e7f795bb62f8acd84cfc4233ff8682f90d 
>   3rdparty/libprocess/src/tests/test_echo.cpp PRE-CREATION 
> 
> 
> Diff: https://reviews.apache.org/r/67075/diff/4/
> 
> 
> Testing
> -------
> 
> [----------] 18 tests from SubprocessTest
> [ RUN      ] SubprocessTest.PipeOutputToFileDescriptor
> [       OK ] SubprocessTest.PipeOutputToFileDescriptor (38 ms)
> [ RUN      ] SubprocessTest.PipeOutputToPath
> [       OK ] SubprocessTest.PipeOutputToPath (33 ms)
> [ RUN      ] SubprocessTest.EnvironmentEcho
> [       OK ] SubprocessTest.EnvironmentEcho (22 ms)
> [ RUN      ] SubprocessTest.Status
> [       OK ] SubprocessTest.Status (29 ms)
> [ RUN      ] SubprocessTest.PipeOutput
> [       OK ] SubprocessTest.PipeOutput (25 ms)
> [ RUN      ] SubprocessTest.PipeLargeOutput
> [       OK ] SubprocessTest.PipeLargeOutput (18 ms)
> [ RUN      ] SubprocessTest.PipeInput
> [       OK ] SubprocessTest.PipeInput (248 ms)
> [ RUN      ] SubprocessTest.PipeRedirect
> [       OK ] SubprocessTest.PipeRedirect (31 ms)
> [ RUN      ] SubprocessTest.PathOutput
> [       OK ] SubprocessTest.PathOutput (54 ms)
> [ RUN      ] SubprocessTest.PathInput
> [       OK ] SubprocessTest.PathInput (232 ms)
> [ RUN      ] SubprocessTest.FdOutput
> [       OK ] SubprocessTest.FdOutput (45 ms)
> [ RUN      ] SubprocessTest.FdInput
> [       OK ] SubprocessTest.FdInput (237 ms)
> [ RUN      ] SubprocessTest.Default
> hello world
> [       OK ] SubprocessTest.Default (21 ms)
> [ RUN      ] SubprocessTest.Flags
> [       OK ] SubprocessTest.Flags (34 ms)
> [ RUN      ] SubprocessTest.Environment
> [       OK ] SubprocessTest.Environment (32 ms)
> [ RUN      ] SubprocessTest.EnvironmentWithSpaces
> [       OK ] SubprocessTest.EnvironmentWithSpaces (19 ms)
> [ RUN      ] SubprocessTest.EnvironmentWithSpacesAndQuotes
> [       OK ] SubprocessTest.EnvironmentWithSpacesAndQuotes (17 ms)
> [ RUN      ] SubprocessTest.EnvironmentOverride
> [       OK ] SubprocessTest.EnvironmentOverride (17 ms)
> [----------] 18 tests from SubprocessTest (1201 ms total)
> 
> 
> Thanks,
> 
> Radhika Jandhyala
> 
>

Reply via email to