Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad format specifier #41

Closed
fifteenhex opened this issue Feb 10, 2020 · 1 comment · Fixed by #44
Closed

Bad format specifier #41

fifteenhex opened this issue Feb 10, 2020 · 1 comment · Fixed by #44

Comments

@fifteenhex
Copy link

When building for i386 the format specifier when printing a ssize_t is wrong and causes the build to fail:

pjdfstest.c: In function ‘call_syscall’:
pjdfstest.c:1164:28: error: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘ssize_t’ {aka ‘int’} [-Werror=format=]
 1164 |    fprintf(stderr, "read %ld bytes\n", r);
      |                          ~~^           ~
      |                            |           |
      |                            long int    ssize_t {aka int}
      |                          %d
@onlyjob
Copy link

onlyjob commented Oct 31, 2020

This is definitely a problem: I'm getting the same FTBFS on Debian.

gaul added a commit to gaul/pjdfstest that referenced this issue Feb 24, 2021
This addresses a warning when running on 32-bit systems.  Fixes pjd#41.
gaul added a commit to gaul/pjdfstest that referenced this issue Feb 25, 2021
This addresses a warning when running on 32-bit systems.  Fixes pjd#41.
asomers pushed a commit that referenced this issue Feb 25, 2021
This addresses a warning when running on 32-bit systems.  Fixes #41.
asomers pushed a commit to asomers/pjdfstest that referenced this issue Jul 9, 2022
Co-authored-by: Alan Somers <asomers@gmail.com>

Adds support for specifying file system exclusive features, which mimics the `require` function from the original test suite. Also adds file flags requirement for additional granularity. The runner skips tests which don't satisfy requirements and print the requirements to launch the test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants