* tests/ipc_msg.c: Additional msgget (parameter format), msgctl
(parameter format, decoding of struct msqid_ds in IPC_SET/IPC_STAT
commands) checks.
* tests/ipc_sem.c: Additional semget, semctl checks.
* tests/ipc_shm.c: Additional shmget, shmctl checks.
* tests/semop.c: Additional semop checks
* tests/sched_xetattr.c: Additional checs for sched_getattr and
sched_setattr decoding.
---
tests/sched_xetattr.c | 43 +++
1 file changed, 43 insertions(+)
diff --git a/tests/sched_xetattr.c b/tests/sched_xetattr.c
index 9ff8c72..ce5c417 100644
--- a/t
Kernel headers declare this field as s32, and strace prints it with %d
specifier.
* tests/sched_xetattr.c: Change type of sched_nice field of struct
sched_attr to int32_t, update format specifiers accordingly.
---
tests/sched_xetattr.c |6 +++---
1 file changed, 3 insertions(+), 3 deletions
---
tests/sched_xetattr.c | 10 --
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/tests/sched_xetattr.c b/tests/sched_xetattr.c
index b437b04..b982cca 100644
--- a/tests/sched_xetattr.c
+++ b/tests/sched_xetattr.c
@@ -54,7 +54,10 @@ main(void)
if (syscall(__NR_sche
tail_alloc with precise size of the structure is used now.
* tests/sched_xetattr.c: Eliminate usage of anonymous union type; rename
sched to sched_attr; change type of sched_attr to struct pointer; use
tail_alloc for sched_attr allocation; update printf statements
accrodingly.
---
tests/sch
Since it is how it is declared.
* tests/sched_xetattr.c: Cast size of struct sched_attr to unsigned,
update format specifier accordingly.
---
tests/sched_xetattr.c |4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/sched_xetattr.c b/tests/sched_xetattr.c
index 2e0c
sprintrc_grep function is sprintrc function equivalent suitable for
tests where grep-base pattern matching is employed.
* tests/sprintrc.c (enum sprintrc_fmt): New sprintrc format enumeration.
(sprintrc_ex): New function, renamed from sprintrc with updates
regarding support of different format
Changes since v1:
* Commits "tests: Additional IPC checks" and "tests: Additional shmget decoder
checks" have been merged.
* Added fix for key_t printing.
* Commits in tests now after commits in sources.
* Sane semcnt provided now in semop/semitimedop struct sembuf decoding
checks.
* Inv
key_t is actually int.
* ipc_msg.c (SYS_FUNC(msgget)): Change format specifier of the first
argument to "%#x".
* ipc_sem.c (SYS_FUNC(semget)): Likewise.
* ipc_shm (SYS_FUNC(shmget)): Likewise.
---
ipc_msg.c |5 +++--
ipc_sem.c |5 +++--
ipc_shm.c |5 +++--
3 files changed, 9 inserti
* ipc_msgctl.c (SYS_FUNC(msgctl)): Convert format specifier of the first
argument from "%lu" to "%d", cast argument to int.
* ipc_sem.c (SYS_FUNC(semop)): Likewise.
(SYS_FUNC(semtimedop)): Likewise.
(SYS_FUNC(semget)): Likewise.
* ipc_shm.c (SYS_FUNC(shmat)): Likewise.
* ipc_shmctl.c (SYS_FUN
On Wed, Sep 07, 2016 at 03:41:01PM +0300, Eugene Syromyatnikov wrote:
[...]
> + assert(semctl(0xfdb97531, 0xeca86420, 0xdeadbeef,
> + (unsigned long) 0xbadc0dedfacef00dULL) == -1);
> + printf("semctl\\(%d, %d, (IPC_64\\|)?%#x /\\* SEM_\\?\\?\\? \\*/, "
> + "\\[?%#lx\
On Wed, Sep 07, 2016 at 03:41:01PM +0300, Eugene Syromyatnikov wrote:
[...]
> diff --git a/tests/ipc_shm.c b/tests/ipc_shm.c
> index 80a8f0f..c2c1b26 100644
> --- a/tests/ipc_shm.c
> +++ b/tests/ipc_shm.c
> @@ -49,8 +49,11 @@ cleanup(void)
> int
> main(void)
> {
> - static const key_t bogus_
On Tue, Sep 06, 2016 at 05:08:36AM +0300, Eugene Syromyatnikov wrote:
> * tests/ipc_shm.c: Additional checks for shmget syscall decoding.
> ---
> tests/ipc_shm.c | 20
> 1 file changed, 20 insertions(+)
>
> diff --git a/tests/ipc_shm.c b/tests/ipc_shm.c
> index 54723e2..80a
13 matches
Mail list logo