Skip to content

Few re-enabled System.Console tests are failing on CI #30130

Closed

Description

@ViktorHofer
  • ExitDetectionNotBlockedByHandler
  • HandlerInvokedForSigInt
  • HandlerInvokedForSigQuit

https://mc.dot.net/#/user/dotnet-bot/pr~2Fdotnet~2Fcorefx~2Frefs~2Fpull~2F38676~2Fmerge/test~2Ffunctional~2Fcli~2Finnerloop~2F/20190702.9/workItem/System.Console.Tests

Tests have existed in the code-base for some time but were missing Fact attribute. When the Fact attribute was added, it started running & failing.

Activity

  1. danmoseley commented on Jul 3, 2019

    @danmoseley
    Contributor

    @tmds in case he's interested.

  2. tmds commented on Jul 4, 2019

    @tmds
    Member

    HandlerInvokedForSigInt
    HandlerInvokedForSigQuit

    These pass when I run them locally.

    When SIGINT and SIGQUIT have an ignored disposition, .NET Core keeps that and doesn't hook up it's own handler.
    In corefx (skipWhenSigIgn arg):
    https://github.com/dotnet/corefx/blob/53c0bae174088c3653391be6cc3c74a1e1f353c1/src/Native/Unix/System.Native/pal_signal.c#L279-L280
    In coreclr:
    https://github.com/dotnet/coreclr/blob/4f6cc4aff1356802f04a7d6bb7a40c1642f7e96e/src/pal/src/exception/signal.cpp#L158-L162

    Probably in CI these have ignored disposition.

    ExitDetectionNotBlockedByHandler

    When I run this it fails with: Exit code was 130 but it should have been 42

    That's because the Console.CancelKeyPress is missing an e.Cancel = true, which causes the SIGINT exit code (128 + SIGINT) to show up, instead of RemoteExecutor.SuccessExitCode.

  3. ViktorHofer commented on Jul 4, 2019

    @ViktorHofer
    MemberAuthor

    After my change is in which puts an Active Issue tag on them, would be great if you could re-enable and condition them?

  4. tmds commented on Jul 9, 2019

    @tmds
    Member

    @ViktorHofer you can assign this to me. I won't work on it immediately, probably in a month or so.

  5. transferred this issue fromdotnet/corefxon Feb 1, 2020
  6. added this to the Future milestone on Feb 1, 2020
  7. added
    untriaged
    on Feb 23, 2020
  8. carlossanlop commented on Feb 27, 2020

    @carlossanlop
    Contributor

    @tmds did you get a chance to re-enable these tests?

  9. removed
    untriaged
    on Feb 27, 2020
  10. adamsitnik commented on Jun 24, 2020

    @adamsitnik
    Member

    @tmds ping

  11. modified the milestones: Future, 5.0.0 on Jun 24, 2020
  12. ghost locked as resolved and limited conversation to collaborators on Dec 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-System.Consoledisabled-test

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions