https://build.libelektra.org/jenkins/job/elektra-homepage/656/console ๋ถํฐ ํํ์ด์ง ๋น๋๊ฐ ๋ค์ ์ค๋ฅ์ ํจ๊ป ์คํจํฉ๋๋ค.
Start 42: test_service_storageengine
39/119 Test #40: test_service_convertengine .......***Failed 7.44 sec
[==========] Running 12 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 12 tests from kdbrestServicesConvertengineTest
[ RUN ] kdbrestServicesConvertengineTest.FindSuitablePluginCheck
[ OK ] kdbrestServicesConvertengineTest.FindSuitablePluginCheck (4223 ms)
[ RUN ] kdbrestServicesConvertengineTest.ExportToFormatCheck
[ OK ] kdbrestServicesConvertengineTest.ExportToFormatCheck (80 ms)
[ RUN ] kdbrestServicesConvertengineTest.ExportToFormatWithConfigCheck
[ OK ] kdbrestServicesConvertengineTest.ExportToFormatWithConfigCheck (54 ms)
[ RUN ] kdbrestServicesConvertengineTest.ExportToFormatCheck2
/home/jenkins/workspace/elektra-homepage/src/tools/rest-backend/tests/test_service_convertengine.cpp:154: Failure
Value of: cf.isValidated ()
Actual: true
Expected: false
[ FAILED ] kdbrestServicesConvertengineTest.ExportToFormatCheck2 (106 ms)
@Namoshek ์ด ์ค๋ฅ๊ฐ ๋ฌด์์ ์๋ฏธํ๋์ง ์์ญ๋๊น? ๋ ๊ตฌ์ฒด์ ์ธ ์ ํจ์ฑ ๊ฒ์ฌ ์ค๋ฅ๋ฅผ ์ป์ผ๋ ค๋ฉด ์ด๋ป๊ฒ ํด์ผ ํฉ๋๊น?
์์งํ ๋งํด์, ๋๋ ์ฝ๊ฐ์ ์์ด๋์ด๊ฐ ์์ต๋๋ค. ํ ์คํธ ์ค์ธ ํ๋ฌ๊ทธ์ธ ๋ณ๊ฒฝ์ผ๋ก ์ธํด ๋ฐ์ํ ์ ์์ต๋๋ค. ๋๋ ๊ทธ ์ดํ๋ก C++๋ฅผ ์ ํ ์์ฑํ์ง ์์๊ธฐ ๋๋ฌธ์ ๊ทธ๋ ๋ด๊ฐ ํ ์ผ์ ์ดํดํ๋ ๋ฐ ๊ฝค ์ด๋ ค์์ ๊ฒช๊ณ ์์ต๋๋ค. ๐
๊ทธ๋๋ ๋น ๋ฅธ ๋ต๋ณ ๊ฐ์ฌํฉ๋๋ค.
์ด์ JSON์ ์ฌ์ฉํ ์๋ณต ์ ํจ์ฑ ๊ฒ์ฌ๊ฐ ์คํจํ ๊ฒ ๊ฐ์ต๋๋ค. @sanssecours ์์ด๋์ด๊ฐ ์์ต๋๊น?
@sanssecours ์์ด๋์ด๊ฐ ์์ต๋๊น?
๋ด๊ฐ ๋งํ ์์๋ ํ ์ฝ๋์์ :
๊ทธ๋ฆฌ๊ณ
YAJL ์ PR #2580์ด master
๋ถ๊ธฐ์ ๋ณํฉ๋ ํ ์๋ณต ์ ํจ์ฑ ๊ฒ์ฌ๋ฅผ ํต๊ณผ ํฉ๋๋ค. ์ด ์ ํ๋ ์ง์ ์์ ASSERT_FALSE
๋ฅผ
ASSERT_TRUE
๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ์ฌ๋ฐ๋ฅธ ๋ฐฉ๋ฒ์ด์ด์ผ ํฉ๋๋ค.
๊ทธ๊ฒ์ ์ฌ์ด ์์ ์ฒ๋ผ ๋ค๋ฆฝ๋๋ค! ์์ธํ ์ค๋ช ๊ฐ์ฌํฉ๋๋ค!
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๋ด๊ฐ ๋งํ ์์๋ ํ ์ฝ๋์์ :
https://github.com/ElektraInitiative/libelektra/blob/3d3c7eb52923cf4329197a9912c9439d9b33b920/src/tools/rest-backend/model_configformat.hpp#L84 -L92
๊ทธ๋ฆฌ๊ณ
https://github.com/ElektraInitiative/libelektra/blob/3d3c7eb52923cf4329197a9912c9439d9b33b920/src/tools/rest-backend/model_configformat.hpp#L47 -L62
YAJL ์ PR #2580์ด
master
๋ถ๊ธฐ์ ๋ณํฉ๋ ํ ์๋ณต ์ ํจ์ฑ ๊ฒ์ฌ๋ฅผ ํต๊ณผ ํฉ๋๋ค. ์ด ์ ํ๋ ์ง์ ์์ASSERT_FALSE
๋ฅผhttps://github.com/ElektraInitiative/libelektra/blob/3d3c7eb52923cf4329197a9912c9439d9b33b920/src/tools/rest-backend/tests/test_service_convertengine.cpp#L154
ASSERT_TRUE
๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ์ฌ๋ฐ๋ฅธ ๋ฐฉ๋ฒ์ด์ด์ผ ํฉ๋๋ค.