Bug 571458 - Headless build always exits with code 0 if last configuration was successfully built
Summary: Headless build always exits with code 0 if last configuration was successfull...
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: Next   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 10.2.0   Edit
Assignee: Torbjörn Svensson CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-24 05:40 EST by Torbjörn Svensson CLA
Modified: 2021-03-01 10:58 EST (History)
2 users (show)

See Also:


Attachments
Example project (3.55 KB, application/zip)
2021-02-24 05:40 EST, Torbjörn Svensson CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Torbjörn Svensson CLA 2021-02-24 05:40:26 EST
Created attachment 285647 [details]
Example project

The "Debug" build configuration in the attached project has an error in the code, thus the build fails for this configuration.

If the project is build using headless mode and the build order is "Debug" followed by "Release" (the build order appears to be random), the exit code will be set to 0 even that there was a build error. Invoking the headless build multiple times, it will become clear that the overall verdict will always be the same as the verdict of the last built configuration.

The verdict of the build needs to be checked between the build configurations and not after all build configurations has been built for a project in order to have the correct verdict.
Comment 1 Eclipse Genie CLA 2021-02-24 05:47:29 EST
New Gerrit change created: https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/176803