AcademySoftwareFoundation / AcademySoftwareFoundation/OpenColorIO
Invalid YAML in test_cpu suite rejected by yaml-cpp 0.9.0
- Lenguaje dominante
- C++
- Estrellas
- 2.1k
- Forks
- 505
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
https://github.com/NixOS/nixpkgs/pull/560590#issuecomment-5564165433
When built against yaml-cpp version 0.9.0, `test_cpu_exec` fails:
```
[ 129/1169] [Config / inactive_color_space_precedence ] - PASSED
/build/source/tests/cpu/Config_tests.cpp:6502:
FAILED: exception thrown from config = OCIO::Config::CreateFromStream(is): "Error: Loading the OCIO profile failed. yaml-cpp: error at line 25, column 1: plain value cannot start with flow indicator character"
Segmentation fault (core dumped) ./test_cpu_exec
```
https://github.com/AcademySoftwareFoundation/OpenColorIO/blob/c52966a6677723d5bd2dbef0ccec3fed9cbc3790/tests/cpu/Config_tests.cpp#L6492-L6502
If you want to continue using funky YAML in this test, then the continued lines of the array with more than just whitespace content must be indented. Example fix (without CLA signature): #2339
Guía de contribución
Línea de trabajo
Comienza con tests/cpu/Config_tests.cpp alrededor de las líneas 6492-6502 y ejecuta la suite de pruebas test_cpu con yaml-cpp 0.9.0 para reproducir el fallo. Inspecciona el fixture YAML utilizado por la prueba; se considera terminado cuando test_cpu_exec finaliza sin el error de análisis de YAML ni segmentation fault.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- cpp
- Área
- testing
- Tipo de issue
- Error
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Activo
- Claridad
- Bien especificado
- Aptitud para principiantes
- 84/100