Skip to content

Disable death test for assert in dxc not work with death test.#4794

Closed
python3kgae wants to merge 1 commit intomicrosoft:mainfrom
python3kgae:disable_death_test
Closed

Disable death test for assert in dxc not work with death test.#4794
python3kgae wants to merge 1 commit intomicrosoft:mainfrom
python3kgae:disable_death_test

Conversation

@python3kgae
Copy link
Copy Markdown
Contributor

If use normal assert, all death tests will pass except ValueHandle.AssertingVH_Asserts.

If use normal assert, all death tests will pass except ValueHandle.AssertingVH_Asserts.
@llvm-beanz
Copy link
Copy Markdown
Collaborator

Can you please provide a list of which test cases fail without this change?

This change doesn't just disable test cases that test for death, but also the ability to test for death more broadly. That is likely okay given how DXC converts death-cases to exceptions, but it would be good to know which tests specifically rely on testing for death to ensure we're not losing something important.

@AppVeyorBot
Copy link
Copy Markdown

@llvm-beanz
Copy link
Copy Markdown
Collaborator

These tests seem to pass on Linux as-is. Maybe we should restrict this change to Windows only?

llvm-beanz added a commit to llvm-beanz/DirectXShaderCompiler that referenced this pull request Nov 29, 2022
This handles a few last Windows fixes for LLVM tests.

* The YAML praser convertes \r to \n, resulting in repeated newlines in
  YAML tests on Windows.
* The MS filesystem changes on Windows cause one of the MemoryBuffer
  tests to fail. I've disabled that test on Windows.
* Because we convert many crash cases to exceptions on Windows the
  GoogleTest DEATH tests fail to die on Windows.

This change addresses the same issue microsoft#4794 solves, but restricts the
change to Windows only. I'm only merging this since @python3kgae is out
and I don't really want to wait until he returns.

utils/unittest/googletest/include/gtest/internal/gtest-port.h
llvm-beanz added a commit that referenced this pull request Dec 2, 2022
This handles a few last Windows fixes for LLVM tests.

* The YAML praser convertes \r to \n, resulting in repeated newlines in
  YAML tests on Windows.
* The MS filesystem changes on Windows cause one of the MemoryBuffer
  tests to fail. I've disabled that test on Windows.
* Because we convert many crash cases to exceptions on Windows the
  GoogleTest DEATH tests fail to die on Windows.

This change addresses the same issue #4794 solves, but restricts the
change to Windows only. I'm only merging this since @python3kgae is out
and I don't really want to wait until he returns.

utils/unittest/googletest/include/gtest/internal/gtest-port.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants