|
1c0560a205
|
tests/bitarithm_timings: add limits.h include
|
2020-11-23 16:56:34 +01:00 |
|
Bas Stottelaar
|
6deaf39e5d
|
tests/*: add missing include of assert.h
|
2020-10-22 11:13:09 +02:00 |
|
Benjamin Valentin
|
74bbb87f78
|
tests/bitarithm_timings: add bitarithm_test_and_clear() to the test
|
2020-07-21 16:03:59 +02:00 |
|
Francisco Molina
|
41e9f06b85
|
flake8: fix PEP8 W608 invalid escape sequence
|
2019-11-22 11:47:49 +01:00 |
|
Marian Buschsieweke
|
8854255d7a
|
tests/bitarithm_timings: Fix use of volatile
The tests used the volatile qualifier for two this:
1. Prevent the compiler to optimize out calls to the inline-able functions
bitarithm_msb, bitarithm_lsb, bitarithm_bits_set
2. Communication between IRQ context and thread context
While the first use is valid, the second is dangerous, see [1], [2], [3], [4].
This commit replaces the second use with C11 atomics, which were explicitly
added to the C standard to address this use case.
[1]: https://www.kernel.org/doc/html/latest/process/volatile-considered-harmful.html
[2]: http://c.isvolatileusefulwiththreads.com/
[3]: https://web.archive.org/web/20181124154026/http://software.intel.com/en-us/blogs/2007/11/30/volatile-almost-useless-for-multi-threaded-programming/
[4]: https://blog.regehr.org/archives/28
|
2019-11-15 09:22:18 +01:00 |
|
Marian Buschsieweke
|
a1be610c9d
|
tests/bitarithm_timings: Fixed hang
Prevent bitarithm_lsb() from being called with 0, as it loops forever then
|
2019-11-15 09:21:24 +01:00 |
|
Gaëtan Harter
|
8e5422ff78
|
applications: remove 'TEST_ON_CI_WHITELIST += all'
This is now the default so not required anymore.
|
2019-08-21 12:51:17 +02:00 |
|
|
472bd0ae01
|
tests: remove obsolete local test targets
|
2018-09-07 15:13:08 +02:00 |
|
smlng
|
3893f04d00
|
tests: move testrunner import up
Testrunner is now impported as a package found in PYTHONPATH, so
import can be placed at the top of the script as usual.
|
2018-08-13 14:11:24 +02:00 |
|
smlng
|
f9824abedb
|
tests: remove unused os package import
os package is imported by every test script but only used by
a few, thus flake8 check reported errors.
|
2018-08-13 14:11:23 +02:00 |
|
smlng
|
13d61b5c20
|
tests: use testrunner from pythonlibs
Remove now obsolete sys.append from all tests, as testrunner was moved
to dist/pythonlibs as proper package.
|
2018-08-13 14:11:23 +02:00 |
|
Gaëtan Harter
|
154fbcff35
|
tests: use RIOTTOOLS variable
Follow up to #9067 and part of #8821
|
2018-05-04 10:52:26 +02:00 |
|
|
a5ed5e283c
|
tests: enable CI testing for some tests
|
2018-03-28 18:28:54 +02:00 |
|
Martine Lenders
|
ba2453d320
|
Merge pull request #8247 from aabadie/pr/tests/python_E305
tests: fix python style E305
|
2017-12-13 10:52:57 +01:00 |
|
|
87b14d96c8
|
tests: fix python style E402
E402 module level import not at top of file
|
2017-12-12 22:40:03 +01:00 |
|
|
d3015f0a57
|
tests: fix python style E305
expected 2 blank lines after class or function definition, found 1
|
2017-12-12 15:43:27 +01:00 |
|
Cenk Gündoğan
|
ac1a645fd1
|
Merge pull request #8190 from kaspar030/name_tests_by_folder
tests: set APPLICATION from folder name
|
2017-12-01 11:39:19 +01:00 |
|
|
fc2eff9fba
|
tests: remove redundant APPLICATION defines
|
2017-12-01 11:03:39 +01:00 |
|
|
c4f66edba1
|
tests: fix python style 'E302 expected 2 blank lines, found 1'
|
2017-11-29 17:32:06 +01:00 |
|
Hauke Petersen
|
479064b7bf
|
test/bitarithm_timings: added pexpect script
|
2017-10-19 14:46:04 +02:00 |
|
Oleg Hahm
|
4f4214235b
|
timex: unambiguous time conversion macros
|
2017-01-19 13:18:08 +01:00 |
|
|
14cbec41bb
|
tests: bitarithm_timings: convert to xtimer
|
2015-09-16 10:58:53 +02:00 |
|
Joakim Gebart
|
c3b8114cbc
|
tests/bitarithm_timings: Fix warning about integer overflow on msp430
|
2015-07-14 08:11:19 +02:00 |
|
Ludwig Ortmann
|
d667c4964a
|
tests: fix cppcheck findings
- bitarithm_timings: use more void, decrease range
- struct_tm_utility: add cppcheck-suppress invalidscanf
|
2014-08-05 17:54:19 +02:00 |
|
René Kijewski
|
8854e8989a
|
tests: fix APPLICATION name
|
2014-07-31 07:34:11 +02:00 |
|
René Kijewski
|
d46c7e00d4
|
tests: remove test_ prefix
Closes #1485.
|
2014-07-31 07:34:11 +02:00 |
|