Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Fix cmd exit codes #1028

Merged
merged 2 commits into from
May 21, 2015
Merged

Fix cmd exit codes #1028

merged 2 commits into from
May 21, 2015

Conversation

mmitche
Copy link
Member

@mmitche mmitche commented May 20, 2015

Fix exit codes in build.cmd/buildtest/cmd/runtest.cmd to report if there is a failure.

Some recently added tests were failing because of this error. I've removed these tests for now. I kept this as a separate commit for the purposes of easy-undo. Let me know if this should be squashed instead.

/cc @pgavlin

The use of goto :eof in numerous places in the build and test scripts is problematic.  If preceded by an echo or other command, it will overwrite the exit code and the script may return incorrectly.  This was happening for buildtest, masking a recent ycompilation error in one of the tests.

Change all of the goto :eof's to exit /b.
@kangaroo
Copy link

I think the commits should be split.

In addition, why should we remove the tests, if they're valid tests we should fix the failure -- no?

@pgavlin
Copy link

pgavlin commented May 21, 2015

@kangaroo right now the tests are failing to build because the sources are a bit mangled. I have a fix for this in flight.

@kangaroo
Copy link

@pgavlin great. I'd rather see 1b52a8e dropped from this PR like I said, and just put in another one which fixes the broken tests. It seems more history clean to me.

Thoughts?

@pgavlin
Copy link

pgavlin commented May 21, 2015

I'll leave that up to @mmitche.

@mmitche
Copy link
Member Author

mmitche commented May 21, 2015

We should, but I'd like to get a clean run and a real fix could take longer. I'll make sure to file an issue about it.

Sent from my Windows Phone


From: Geoff Nortonmailto:notifications@github.com
Sent: ‎5/‎20/‎2015 5:09 PM
To: dotnet/coreclrmailto:coreclr@noreply.github.com
Cc: Matt Mitchellmailto:mmitche@microsoft.com
Subject: Re: [coreclr] Fix cmd exit codes (#1028)

I think the commits should be split.

In addition, why should we remove the tests, if they're valid tests we should fix the failure -- no?


Reply to this email directly or view it on GitHubhttps://github.com//pull/1028#issuecomment-104076534.

@mmitche mmitche force-pushed the fix-cmd-exit-codes branch from 1b52a8e to c122ee6 Compare May 21, 2015 16:55
@mmitche
Copy link
Member Author

mmitche commented May 21, 2015

@kangaroo @pgavlin I took a look at the failing tests and couldn't see anything obvious straight out. I filed 1036 and 1037 for the runtime failure and kept the separate commits for now.

/cc @richardlford

@mmitche
Copy link
Member Author

mmitche commented May 21, 2015

@dotnet-bot test this please

@pgavlin
Copy link

pgavlin commented May 21, 2015

LGTM. Thanks for doing this.

pgavlin added a commit that referenced this pull request May 21, 2015
@pgavlin pgavlin merged commit 8e792a3 into dotnet:master May 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants