Comments (2)
Out of curiosity, why is reporting the test step more difficult than reporting the file/line location?
from mbedtls.
Reporting the line / location is guarded by the test result state - we take the lock, then set the test name, line and file (and the two extra lines if necessary), and then unlock. Should a second thread come along at this point, they would bounce off as the test had already failed.
When setting the step (to an arbitary value) there is no such built in safeguard, one simply sets the step. If two threads are both attempting to set the step, then the order in which they set the step (one obviously overwriting the other) is completely undetermined. Even if we constrained the step value to a single test, and that test used threads we would hit this, so I'm really not entirely sure, as I said how best to fix it.
In the case of increment step, if its basically being used as a counter, then it will function as that, but there is still uncertainty about the order in which increments happen, however if that is not something you are bothered about then this is still useful in a multi-thread environment.
from mbedtls.
Related Issues (20)
- Remove hkdf.c HOT 2
- Protect against spurious definitions of derived symbols
- 2.28 only: build broken when `check_config.h` is not included
- Missing include stdlib.h and stdio.h in some platform configurations
- MbedTLS v3.6.0 - Compilation errors and warnings HOT 1
- Implement tf_psa_crypto_config.py
- Adapt config.py to configuration file split
- Move shipped AES and SHA acceleration to PSA drivers
- Deduce MBEDTLS_BLOCK_CIPHER_NO_DECRYPT automatically
- Consider removing DES HOT 1
- MBEDTLS_ECDSA_DETERMINISTIC in a PSA world
- Fix the detection of not-supported mechanisms in systematically generated PSA tests
- Improve the detection of never-supported PSA mechanisms
- Fix automatically generated PSA test cases that are not executed
- CMake Python detection finds the wrong Python HOT 1
- Signature of mbedtls_ssl_get_own_cid is using MBEDTLS_SSL_CID_OUT_LEN_MAX instead of MBEDTLS_SSL_CID_IN_LEN_MAX
- Rename `MBEDTLS_PSA_P256M_DRIVER_ENABLED` as `PSA_CRYPTO_DRIVER_MBEDTLS_P256M` HOT 1
- Add API to parse DER signature and export R and S components HOT 3
- Error when building MbedTLS 3.6 with GCC with LTO HOT 3
- MbedTLS code style inconsistencies
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbedtls.