Skip to content

Commit 7f8364d

Browse files
nikomatsakismark-i-m
authored andcommitted
correct links (mdbook seems to want them relative to the book root)
1 parent caea7ae commit 7f8364d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/how-to-build-and-run.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,6 @@ Here are a few other useful x.py commands. We'll cover some of them in detail in
132132
- `./x.py clean` – clean up the build directory (`rm -rf build` works too, but then you have to rebuild LLVM)
133133
- `./x.py build --stage 1` – builds everything using the stage 1 compiler, not just up to libstd
134134
- `./x.py build` – builds the stage2 compiler
135-
- Running tests (see the section [running tests](./running-tests.html) for more details):
135+
- Running tests (see the [section on running tests](./tests/running.html) for more details):
136136
- `./x.py test --stage 1 src/libstd` – runs the `#[test]` tests from libstd
137137
- `./x.py test --stage 1 src/test/run-pass` – runs the `run-pass` test suite

src/tests/adding.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ To add a new test, the first thing you generally do is to create a
99
file, typically a Rust source file. Test files have a particular
1010
structure:
1111

12-
- They always begin with the [copyright notice](../conventions.html#copyright);
12+
- They always begin with the [copyright notice](./conventions.html#copyright);
1313
- then they should have some kind of
1414
[comment explaining what the test is about](#explanatory_comment);
1515
- next, they can have one or more [header commands](#header_commands), which are special

src/tests/intro.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ The compiler has an extensive testing framework, masterminded by the
44
compiletest tool (sources in the [`src/tools/compiletest`]). This
55
section gives a brief overview of how the testing framework is setup,
66
and then gets into some of the details on
7-
[how to run tests](running.html) as well as
8-
[how to add new tests](adding.html).
7+
[how to run tests](./tests/running.html#ui) as well as
8+
[how to add new tests](./tests/adding.html).
99

1010
[`src/tools/compiletest`]: https://github.com/rust-lang/rust/tree/master/src/tools/compiletest
1111

@@ -23,7 +23,7 @@ Here is a brief summary of the test suites as of this writing and what
2323
they mean. In some cases, the test suites are linked to parts of the manual
2424
that give more details.
2525

26-
- [`ui`](adding.html#) -- tests that check the exact stdout/stderr from compilation
26+
- [`ui`](./tests/adding.html#ui) -- tests that check the exact stdout/stderr from compilation
2727
and/or running the test
2828
- `run-pass` -- tests that are expected to compile and execute successfully (no panics)
2929
- `run-pass-valgrind` -- tests that ought to run with valrind

src/tests/running.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ think is done, but rarely otherwise. -nmatsakis)
1818
When you run the full suite of tests via `./x.py test`, the first
1919
thing that executes is a "tidy suite" that checks for long lines and
2020
other formatting conventions. There is more information in the
21-
[section on coding conventions](../conventions.html#formatting).
21+
[section on coding conventions](./conventions.html#formatting).
2222

2323
## Running a subset of the test suites
2424

0 commit comments

Comments
 (0)