You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/compiletests/README.md
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,10 +71,15 @@ contents of `path/to/test.rs.stderr`.
71
71
*`// normalize-stderr-test "targetSpecificMsg" -> ""` Replaces any substrings in stderr with another to normalise output
72
72
between different machines and targets. By default, you should have to not specify any and only add them as needed.
73
73
List of common substitutions:
74
-
*`// normalize-stderr-test "OpLine .*\n" -> ""` remove all line numbers from debug info
75
-
*`// normalize-stderr-test "OpSource .*\n" -> ""` remove all source code from debug info
76
-
*`// normalize-stderr-test "\S*/crates/spirv-std/src/" -> "$$SPIRV_STD_SRC/"` normalize path to the `spirv-std` crate
77
-
*`// normalize-stderr-test "OpCapability VulkanMemoryModel\n" -> ""` remove the vulkan memory model *capability*, only used by vulkan targets
78
-
*`// normalize-stderr-test "OpExtension .SPV_KHR_vulkan_memory_model.\n" -> ""` remove the vulkan memory model *extension*, only used by vulkan targets
79
-
*`// normalize-stderr-test "OpMemoryModel Logical Vulkan" -> "OpMemoryModel Logical Simple"` replace the `Vulkan` memory model with `Simple`
80
-
*`// normalize-stderr-test "\S*/lib/rustlib/" -> "$$SYSROOT/lib/rustlib/"` normalize path to crates delivered with rustc, such as `core`
74
+
* remove debug info:
75
+
*`// normalize-stderr-test "OpLine .*\n" -> ""` remove all line numbers
76
+
*`// normalize-stderr-test "OpSource .*\n" -> ""` remove all source code
* when disassembling globals and testing on both `vulkan` and `spv` targets:
79
+
*`// normalize-stderr-test "OpCapability VulkanMemoryModel\n" -> ""` remove the vulkan memory model *capability*, only used by `vulkan` targets
80
+
*`// normalize-stderr-test "OpExtension .SPV_KHR_vulkan_memory_model.\n" -> ""` remove the vulkan memory model *extension*, only used by `vulkan` targets
81
+
*`// normalize-stderr-test "OpMemoryModel Logical Vulkan" -> "OpMemoryModel Logical Simple"` replace the `Vulkan` memory model with `Simple`, which `spv` targets use
82
+
*`// normalize-stderr-test "; .*\n" -> ""` remove comments on spirv version by rspirv
83
+
* remove rustc error src paths:
84
+
*`// normalize-stderr-test "\S*/lib/rustlib/" -> "$$SYSROOT/lib/rustlib/"` normalize path to crates delivered with rustc, such as `core`
85
+
*`// normalize-stderr-test "\S*/crates/spirv-std/src/" -> "$$SPIRV_STD_SRC/"` normalize path to the `spirv-std` crate
0 commit comments