From 2a5eb92197e9cf8fe91164dcbf4f9b88c0d7e73d Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Sat, 22 Apr 2023 13:50:11 +0200 Subject: [PATCH] Add docs for compare-output-lines-by-subset flag (#1677) --- src/tests/headers.md | 2 ++ src/tests/ui.md | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/tests/headers.md b/src/tests/headers.md index 5b71f3ea1762c..e5e403b5e580b 100644 --- a/src/tests/headers.md +++ b/src/tests/headers.md @@ -52,6 +52,8 @@ found in [`header.rs`] from the compiletest source. * [`stderr-per-bitwidth`](ui.md#output-comparison) — separate output per bit width * [`dont-check-compiler-stderr`](ui.md#output-comparison) — don't validate stderr * [`dont-check-compiler-stdout`](ui.md#output-comparison) — don't validate stdout + * [`compare-output-lines-by-subset`](ui.md#output-comparison) — checks output by + line subset * [Building auxiliary crates](compiletest.md#building-auxiliary-crates) * `aux-build` * `aux-crate` diff --git a/src/tests/ui.md b/src/tests/ui.md index cc32ad1d3ac96..d94d8cc4e09fa 100644 --- a/src/tests/ui.md +++ b/src/tests/ui.md @@ -84,6 +84,9 @@ check for output files: [Normalization](#normalization)). * `dont-check-compiler-stderr` — Ignores stderr from the compiler. * `dont-check-compiler-stdout` — Ignores stdout from the compiler. +* `compare-output-lines-by-subset` — Checks that the output contains the + contents of the stored output files by lines opposed to checking for strict + equality. UI tests run with with `-Zdeduplicate-diagnostics=no` flag which disables rustc's built-in diagnostic deduplication mechanism.