Hello,

Le 2025-03-16 à 22 h 27, Ben Collins a écrit :

Might be best if I disable mbedtls for now.

Yet, if I disable MbedTLS, I still have an error on jwt_jwks. The expected error message isn't the one returned by the test
"Couldn't read a file:// file" != "Could not read a file:// file"

Looks like the error message comes from another library (jansson?)

10: Test command: /bin/bash "-c" "export TEST=jwt_claims; . /<<PKGBUILDDIR>>/tests/test-env.sh; exec /<<PKGBUILDDIR>>/build/tests/jwt_claims"
10: Working Directory: /<<PKGBUILDDIR>>/build
10: Test timeout computed to be: 1500
10: Running suite(s): LibJWT Claims Handling
2: 80%: Checks: 10, Failures: 2, Errors: 0
2: ./tests/jwt_jwks.c:75:P:jwt_jwks:test_jwks_keyring_load:0: Passed
2: ./tests/jwt_jwks.c:75:P:jwt_jwks:test_jwks_keyring_load:1: Passed
2: ./tests/jwt_jwks.c:145:P:jwt_jwks:test_jwks_keyring_all_bad:0: Passed
2: ./tests/jwt_jwks.c:145:P:jwt_jwks:test_jwks_keyring_all_bad:1: Passed
2: ./tests/jwt_jwks.c:93:F:jwt_jwks:load_fromurl:0: Assertion 'jwks_error_msg(jwk_set) == "Couldn't read a file:// file"' failed: jwks_error_msg(jwk_set) == "Could not read a file:// file", "Couldn't read a file:// file" == "Couldn't read a file:// file" 2: ./tests/jwt_jwks.c:93:F:jwt_jwks:load_fromurl:1: Assertion 'jwks_error_msg(jwk_set) == "Couldn't read a file:// file"' failed: jwks_error_msg(jwk_set) == "Could not read a file:// file", "Couldn't read a file:// file" == "Couldn't read a file:// file"
2: ./tests/jwt_jwks.c:166:P:jwt_jwks:test_jwks_key_op_all_types:0: Passed
2: ./tests/jwt_jwks.c:166:P:jwt_jwks:test_jwks_key_op_all_types:1: Passed
2: ./tests/jwt_jwks.c:194:P:jwt_jwks:test_jwks_key_op_bad_type:0: Passed
2: ./tests/jwt_jwks.c:194:P:jwt_jwks:test_jwks_key_op_bad_type:1: Passed
 7/10 Test  #2: jwt_jwks .........................***Failed    0.36 sec
Running suite(s): LibJWT JWKS
80%: Checks: 10, Failures: 2, Errors: 0
./tests/jwt_jwks.c:75:P:jwt_jwks:test_jwks_keyring_load:0: Passed
./tests/jwt_jwks.c:75:P:jwt_jwks:test_jwks_keyring_load:1: Passed
./tests/jwt_jwks.c:145:P:jwt_jwks:test_jwks_keyring_all_bad:0: Passed
./tests/jwt_jwks.c:145:P:jwt_jwks:test_jwks_keyring_all_bad:1: Passed
./tests/jwt_jwks.c:93:F:jwt_jwks:load_fromurl:0: Assertion 'jwks_error_msg(jwk_set) == "Couldn't read a file:// file"' failed: jwks_error_msg(jwk_set) == "Could not read a file:// file", "Couldn't read a file:// file" == "Couldn't read a file:// file" ./tests/jwt_jwks.c:93:F:jwt_jwks:load_fromurl:1: Assertion 'jwks_error_msg(jwk_set) == "Couldn't read a file:// file"' failed: jwks_error_msg(jwk_set) == "Could not read a file:// file", "Couldn't read a file:// file" == "Couldn't read a file:// file"
./tests/jwt_jwks.c:166:P:jwt_jwks:test_jwks_key_op_all_types:0: Passed
./tests/jwt_jwks.c:166:P:jwt_jwks:test_jwks_key_op_all_types:1: Passed
./tests/jwt_jwks.c:194:P:jwt_jwks:test_jwks_key_op_bad_type:0: Passed
./tests/jwt_jwks.c:194:P:jwt_jwks:test_jwks_key_op_bad_type:1: Passed

Reply via email to