diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-29 11:51:06 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-29 11:51:06 -0500 |
| commit | eff40832ef9f1f9960487bd36e0c9730fc555a24 (patch) | |
| tree | 5852efe10fdbb378077c4f5879980600442a60a7 /tests/test_run_gpu_tests_python_assembler.py | |
| parent | f051ae51831cb2e6a79bc73e113b4fa4a201dc91 (diff) | |
| parent | 0bc6e21a10a87fc34542e4c6a18720fa13cbd21b (diff) | |
Merge remote-tracking branch 'refs/remotes/mandy/main' into fix/rendering-correctness
# Conflicts:
# runtime/shims/d3d12_com.cpp
# runtime/shims/d3d12_vulkan_device.cpp
# runtime/src/command_list.h
# runtime/src/vulkan_replay.h
# runtime/test/gfx10_descriptors_test.cpp
Diffstat (limited to 'tests/test_run_gpu_tests_python_assembler.py')
| -rw-r--r-- | tests/test_run_gpu_tests_python_assembler.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_run_gpu_tests_python_assembler.py b/tests/test_run_gpu_tests_python_assembler.py index d817f4ec0..fd61b6a9d 100644 --- a/tests/test_run_gpu_tests_python_assembler.py +++ b/tests/test_run_gpu_tests_python_assembler.py | |||
| @@ -20,6 +20,14 @@ import run_gpu_tests | |||
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | class PythonAssemblerTests(unittest.TestCase): | 22 | class PythonAssemblerTests(unittest.TestCase): |
| 23 | def test_native_assembler_error_preserves_undecodable_diagnostics(self): | ||
| 24 | run = subprocess.run | ||
| 25 | child = [sys.executable, "-c", "import sys; sys.stderr.buffer.write(b'bad operand \\xff'); sys.exit(1)"] | ||
| 26 | with patch.object(run_gpu_tests.subprocess, "run", side_effect=lambda _, **kw: run(child, **kw)): | ||
| 27 | with self.assertRaises(RuntimeError) as raised: | ||
| 28 | run_gpu_tests.spirv_as("", "unused.spv") | ||
| 29 | self.assertIn(r"bad operand \xff", str(raised.exception)) | ||
| 30 | |||
| 23 | def test_resolve_assembler_auto_and_explicit(self) -> None: | 31 | def test_resolve_assembler_auto_and_explicit(self) -> None: |
| 24 | self.assertEqual(run_gpu_tests.resolve_assembler("python"), "python") | 32 | self.assertEqual(run_gpu_tests.resolve_assembler("python"), "python") |
| 25 | self.assertEqual(run_gpu_tests.resolve_assembler("spirv-as"), "spirv-as") | 33 | self.assertEqual(run_gpu_tests.resolve_assembler("spirv-as"), "spirv-as") |