Skip to content

Commit

Permalink
Add regression test for #122722
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Mar 21, 2024
1 parent 2195854 commit c5dc4c7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/run-make/rustdoc-test-args/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
include ../tools.mk

# Test that rustdoc will properly load in a theme file and display it in the theme selector.

OUTPUT_DIR := "$(TMPDIR)/rustdoc-test-args"

all:
yes -- --cfg=A | head -n 100000 > cfgs
$(RUSTDOC) --test @cfgs foo.rs
rm cfgs
3 changes: 3 additions & 0 deletions tests/run-make/rustdoc-test-args/foo.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//! ```
//! let x = 12;
//! ```

0 comments on commit c5dc4c7

Please sign in to comment.