aboutsummaryrefslogtreecommitdiffstats
path: root/executor/test.h
Commit message (Collapse)AuthorAgeFilesLines
* executor: fix handling of big-endian bitfieldsDmitry Vyukov2018-12-081-2/+2
| | | | | Currently we apply big-endian-ness and bitfield-ness in the wrong order in copyin. This leads to totally bogus result. Fix this.
* executor: fix strict aliasing violationsDmitry Vyukov2018-07-241-7/+16
| | | | | | | | | test_copyin does bad things. Fix that. executor/test.h: In function ‘int test_copyin()’: executor/common.h:299:16: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] *(type*)(addr) = (type)(val); \ ^
* executor: overhaulDmitry Vyukov2018-07-241-0/+212
Make as much code as possible shared between all OSes. In particular main is now common across all OSes. Make more code shared between executor and csource (in particular, loop function and threaded execution logic). Also make loop and threaded logic shared across all OSes. Make more posix/unix code shared across OSes (e.g. signal handling, pthread creation, etc). Plus other changes along similar lines. Also support test OS in executor (based on portable posix) and add 4 arches that cover all execution modes (fork server/no fork server, shmem/no shmem). This change paves way for testing of executor code and allows to preserve consistency across OSes and executor/csource.