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




src/tests/health_check_tests.cpp
Lines 46-48 (patched)
<https://reviews.apache.org/r/59891/#comment250758>

    Do we need a macro here?
    
    Can we just do it inline? Something like:
    
    ```cpp
    const char *falseCommand =
    #ifndef __WINDOWS__
      "false"
    #else
      "cmd /C exit 1"
    #endif
      ;
      
      // The health check for this task will always fail, but the grace period 
of
      // 9999 seconds should mask the failures.
      vector<TaskInfo> tasks = populateTasks(
        SLEEP_COMMAND(2), falseCommand, offers.get()[0], 9999);
    ```


- Michael Park


On June 7, 2017, 12:15 p.m., Andrew Schwartzmeyer wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/59891/
> -----------------------------------------------------------
> 
> (Updated June 7, 2017, 12:15 p.m.)
> 
> 
> Review request for mesos, Jeff Coffler, John Kordich, Joseph Wu, and Li Li.
> 
> 
> Bugs: MESOS-7638
>     https://issues.apache.org/jira/browse/MESOS-7638
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This fixes tests that pass but emit error messages due to `false` not
> existing as a command on Windows.
> 
> 
> Diffs
> -----
> 
>   src/tests/health_check_tests.cpp 7917a222daf6a8fbe2a5fe6657852e6ff6e699ba 
> 
> 
> Diff: https://reviews.apache.org/r/59891/diff/1/
> 
> 
> Testing
> -------
> 
> Trying to split out fixes I made in my fix-long-paths branch that can be 
> applied sooner, so this has been tested quite thoroughly but with other 
> patches.
> 
> 
> Thanks,
> 
> Andrew Schwartzmeyer
> 
>

Reply via email to