Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/acton/test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ compilerTests =
removeIfExists (typesDir </> "main.h")
removeIfExists (typesDir </> "main.root.c")
sixthLog <- assertOk "dbp keeps executable root actor" =<<
runBuild ["build", "--verbose", "--dbp", "main", "--dbp", "provider", "--color", "never"]
runBuild ["build", "--skip-build", "--verbose", "--dbp", "main", "--dbp", "provider", "--color", "never"]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore the DBP root build coverage

Adding --skip-build here means this subcase no longer regenerates main.root.c after the test deletes it above, because skip_build returns before zigBuild, and writeRootC is only called from zigBuild in compiler/acton/Main.hs. This lets the test pass while the DBP executable-root path is unable to produce/link an executable root stub; the main.c assertion only proves the actor body was emitted, not that acton build --dbp main can still build the binary entry point.

Useful? React with 👍 / 👎.

assertBool "root module should report root seed" ("DBP main: forced by --dbp" `isInfixOf` sixthLog)
assertBool "root module should count root name" ("root names 1" `isInfixOf` sixthLog)
mainC <- readFile (typesDir </> "main.c")
Expand Down
Loading