aboutsummaryrefslogtreecommitdiffstats
path: root/sys/test/test_64.const
Commit message (Collapse)AuthorAgeFilesLines
* pkg/compiler: merge const files into a single fileDmitry Vyukov2020-08-131-4/+0
| | | | | | | | | | | | | | | | | | | | We now have 8 arches for Linux and .const files produce lots of noise in PRs and lots of diffs. If 3 .txt files are touched, the PR will have 24 .const files, which will be intermixed with .txt files. Frequently const values are equal across arches, and even if they don't spreading a single value across 8 files is inconvinient. Merge all 8 *_arch.const files into a single .const file. See the test for details of the new format. The old format is still parsed for now, we can't update all OSes at once. For Linux this reduces number of const files/lines from 1288/96599 to 158/11603. Fixes #1983
* pkg/compiler: don't specify syscall consts for test OSDmitry Vyukov2020-03-171-21/+0
| | | | This is just tedious. Fabricate them on the fly.
* prog: don't add fallback coverage after prctlDmitry Vyukov2020-01-151-0/+1
| | | | The same reason as with seccomp.
* prog: add special mutation for binary flagsVeronica Radu2019-08-091-0/+1
|
* prog: don't minimize ProcType to 0Dmitry Vyukov2019-07-261-0/+1
| | | | | | | | Default value for ProcType is 0 (same for all PID's). Usually 0 either does not make sense at all or make different PIDs collide (since we use ProcType to separate value ranges for different PIDs). So don't change ProcType to 0 unless the type is explicitly marked as opt (in that case we will also generate 0 anyway).
* pkg/compiler: work around 0-array-size errors due to missing constsDmitry Vyukov2019-05-151-0/+2
| | | | | | | A const can be used as array size. Then if the const is not present on all arches, compiler will produce an error about 0-sized-array. There is no easy way to work around this for a user. Use value of 1 for missing consts. It's just a bit safer.
* prog: don't add fallback signal after seccompDmitry Vyukov2018-08-191-0/+2
| | | | | seccomp filter can produce arbitrary errno values for subsequent syscalls. Don't trust anything afterwards.
* executor: overhaulDmitry Vyukov2018-07-241-0/+15
| | | | | | | | | | | | | | | | | 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.
* sys: move test syscalls to a separate targetDmitry Vyukov2017-12-171-0/+3
We have them in linux solely for historical reasons. Fixes #462