diff options
| author | Zack <zmasi21@gmail.com> | 2026-11-29 16:00:29 -0800 |
|---|---|---|
| committer | Zack <zmasi21@gmail.com> | 2026-11-29 16:00:29 -0800 |
| commit | ab78da3718b6005e5634738943dc6ff55844c625 (patch) | |
| tree | 7e4cee6deb41cce303a2047ac08ca99ea9242a7d /tests/test_run_gpu_tests_python_assembler.py | |
| parent | 53a6ec172d3b5ec09cfb104811efafff1eb45b28 (diff) | |
| parent | 452d1d1b68aa2da94d5f0eff43ad0a6a83bbbadf (diff) | |
Merge origin/main into fix/d3d12-shader-paired-water-and-wave64
Integrates multi-wave barriers_on_every_way, _rtn paired LDS atomics, ds_cmpst_rtn_b32, and ds_sub_u32 compare-exchange loops alongside multi-dword/sub-dword paired LDS, default LEONIDA_LOOPS_WAVE=1, monotone fixpoint lane_regions, partial_active host_wide masking, and Sym::Own lane provenance.
AI-assisted.
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") |