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

Configure type checks re-use return values from previous tests #14

Open
josefwegner opened this issue Dec 6, 2024 · 1 comment
Open

Comments

@josefwegner
Copy link

Configure type checks will have semi-random values for types. It seems that most of the time previous results will be re-used for the next test:

> sh
> ./configure
...
checking size of char... 1
checking size of short... 2
checking size of int... 2
checking size of long... 2
checking size of long long... 2
checking size of void *... 2

The next run might have these values:

checking size of char... 1
checking size of short... 1
checking size of int... 1
checking size of long... 4
checking size of long long... 4
checking size of void *... 4

Adding a delay (sleep 1) after each type test will result in the correct values:

checking size of char... 1
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking size of long long... 8
checking size of void *... 4

I am not sure what causes this issue. My guess is that we have an issue with file caching, pipes or that the commands in the script are not executed in the correct order.

@josefwegner
Copy link
Author

This is a very small example project.

check.zip

Unzip and just run

sh configure

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

No branches or pull requests

1 participant