AcademySoftwareFoundation / AcademySoftwareFoundation/OpenColorIO
Invalid YAML in test_cpu suite rejected by yaml-cpp 0.9.0
- Lingua principale
- C++
- Stelle
- 2.1k
- Fork
- 503
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia da tests/cpu/Config_tests.cpp intorno alle righe 6492-6502 ed esegui la suite di test test_cpu con yaml-cpp 0.9.0 per riprodurre il problema. Ispeziona il fixture YAML utilizzato dal test; il lavoro è completato quando test_cpu_exec termina senza l'errore di parsing YAML né segmentation fault.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp
- Ambito
- testing
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Attiva
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 84/100