pytest_examples_cxx_pthread.py 858 B

1234567891011121314151617181920
  1. # SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
  2. # SPDX-License-Identifier: Unlicense OR CC0-1.0
  3. import pytest
  4. from pytest_embedded_idf.dut import IdfDut
  5. @pytest.mark.supported_targets
  6. @pytest.mark.generic
  7. def test_examples_cpp_pthread(dut: IdfDut) -> None:
  8. dut.expect(
  9. [
  10. r'pthread: This thread \(with the default name\) may run on any core.'
  11. r'Core id: [01], prio: 5, minimum free stack: \d+ bytes\.',
  12. r'Thread [12]: Core id: [01], prio: 5, minimum free stack: \d+ bytes\.',
  13. r'Thread [12]: This is the INHERITING thread with the same parameters as our parent, '
  14. r'including name. Core id: [01], prio: 5, minimum free stack: \d+ bytes\.',
  15. r'Thread [12]: Core id: [01], prio: 5, minimum free stack: \d+ bytes\.',
  16. ],
  17. expect_all=True,
  18. )