Include gen_config for CONFIG_SIMULATION - #157
Merged
Merged
Conversation
midnightveil
force-pushed
the
julia/simulation-includes
branch
from
June 3, 2026 04:04
c624c37 to
383f2d6
Compare
This wasn't included, so it wasn't defined, so it was always false and so this test always ran. Signed-off-by: Julia Vassiliki <julia.vassiliki@unsw.edu.au>
midnightveil
force-pushed
the
julia/simulation-includes
branch
from
June 3, 2026 04:06
383f2d6 to
5b36176
Compare
Contributor
Author
|
Currently the style checker is failing with: diff --git a/apps/sel4test-tests/src/tests/faults.c b/apps/sel4test-tests/src/tests/faults.c
index d0320f0..2d74a42 100644
--- a/apps/sel4test-tests/src/tests/faults.c
+++ b/apps/sel4test-tests/src/tests/faults.c
@@ -1063,7 +1063,7 @@ static int test_timeout_fault_nested_servers(env_t env)
return sel4test_get_result();
}
DEFINE_TEST(TIMEOUTFAULT0003, "Nested timeout fault", test_timeout_fault_nested_servers,
- config_set(CONFIG_KERNEL_MCS) && !config_set(CONFIG_SIMULATION))
+ config_set(CONFIG_KERNEL_MCS)&& !config_set(CONFIG_SIMULATION))
static void vm_enter(void)
{
When I fix this it then complains again, wanting it back the other way: diff --git a/apps/sel4test-tests/src/tests/faults.c b/apps/sel4test-tests/src/tests/faults.c
index 2d74a42..d0320f0 100644
--- a/apps/sel4test-tests/src/tests/faults.c
+++ b/apps/sel4test-tests/src/tests/faults.c
@@ -1063,7 +1063,7 @@ static int test_timeout_fault_nested_servers(env_t env)
return sel4test_get_result();
}
DEFINE_TEST(TIMEOUTFAULT0003, "Nested timeout fault", test_timeout_fault_nested_servers,
- config_set(CONFIG_KERNEL_MCS)&& !config_set(CONFIG_SIMULATION))
+ config_set(CONFIG_KERNEL_MCS) && !config_set(CONFIG_SIMULATION))
static void vm_enter(void)
{Thanks, astyle. |
lsf37
approved these changes
Jun 3, 2026
Member
|
Super annoying. It's possible that it's failing to parse this properly, because it's inside a macro and there is no real actual syntactic C context that it is parsing the expression in (it's basically random text between function definitions). Not sure that helps us anything, though. If all else fails, we can just merge it with failing style test. It will keep complaining in the future, of course. |
Contributor
Author
Yes, unfortunately. Though this seems to have been already the case pre-this PR... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This wasn't included, so it wasn't defined, so it was always false and so this test always ran.
(Added in #146 without the header)