ProcessLaunchTestTokens.h 993 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. // shared between the tests (ProcessLaunchParseTests.cpp) and the simple exe that they use to test
  9. // themselves (ProcessLaunchMain.cpp). The targets are unrelated to each other in CMake but still
  10. // need to include this file in both.
  11. namespace ProcessLaunchTestInternal
  12. {
  13. // the default buffer size for stdout/stdin on some platforms is 4k. This number
  14. // should just be higher than a couple multiples of buffer sizes to ensure that it overwhelms
  15. // any buffer and reveals any deadlock caused by not reading from stdout/stderr when its full.
  16. constexpr const size_t s_numOutputBytesInPlentyMode = 16 * 1024 ;
  17. constexpr const char* s_beginToken = "BEGIN";
  18. constexpr const char* s_endToken = "END";
  19. constexpr const char* s_midToken = "x";
  20. }