Skip to content

Commit f43142b

Browse files
Fix rustdoc tests
The name of the OS had changed, so the tests needed updating
1 parent 000e37e commit f43142b

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

tests/rustdoc-html/doc-cfg/all-targets.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
//@ has all_targets/fn.foo.html \
44
// '//*[@id="main-content"]/*[@class="item-info"]/*[@class="stab portability"]' \
55
// 'Available on target_env=fake_env or Catalyst or GNU or Managarm C Library \
6-
// or MSVC or musl or Neutrino 7.0 or Neutrino 7.1 or Neutrino 7.1 with io-sock \
7-
// or Neutrino 8.0 or Newlib or OpenHarmony or relibc or SGX or Simulator or \
8-
// uClibc or V5 or WASIp1 or WASIp2 or WASIp3 only.'
6+
// or MSVC or musl or Newlib or OpenHarmony or QNX SDP 7.0 or QNX SDP 7.1 or \
7+
// QNX SDP 7.1 with io-sock or relibc or SGX or Simulator or uClibc or V5 or WASIp1 \
8+
// or WASIp2 or WASIp3 only.'
99
#[doc(cfg(any(
1010
target_env = "gnu",
1111
target_env = "macabi",
@@ -80,7 +80,7 @@ pub fn bar() {}
8080
// and HelenOS and Hermit and Horizon and illumos and iOS and L4Re and Linux \
8181
// and LynxOS-178 and macOS and Managarm and Motor OS and NetBSD and NuttX \
8282
// and OpenBSD and Play Station 1 and Play Station Portable and Play Station Vita \
83-
// and QNX Neutrino and QuRT and Redox OS and RTEMS OS and Solaris and \
83+
// and QNX SDP 7.x and QNX SDP 8.0+ and QuRT and Redox OS and RTEMS OS and Solaris and \
8484
// SOLID ASP3 and TEEOS and Trusty and tvOS and UEFI and VEXos and visionOS \
8585
// and VxWorks and WASI and watchOS and Windows and Xous and zero knowledge \
8686
// Virtual Machine only.'

tests/rustdoc-html/doc-cfg/sort.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@
99
// Tests that OS targets are sorted alphabetically.
1010
//@ has 'foo/fn.foo.html'
1111
//@ has - '//*[@class="stab portability"]' 'Available on Android or Apple or Cygwin \
12-
// or DragonFly BSD or FreeBSD or Linux or NetBSD or OpenBSD or QNX Neutrino only.'
12+
// or DragonFly BSD or FreeBSD or Linux or NetBSD or OpenBSD only.'
1313
#[doc(cfg(any(
1414
target_os = "android",
1515
target_os = "linux",
1616
target_os = "dragonfly",
1717
target_os = "freebsd",
1818
target_os = "netbsd",
1919
target_os = "openbsd",
20-
target_os = "nto",
21-
target_os = "qnx",
2220
target_vendor = "apple",
2321
target_os = "cygwin"
2422
)))]
@@ -28,16 +26,14 @@ pub fn foo() {}
2826
// Tests that targets are sorted alphabetically just like explicit `doc(cfg)`.
2927
//@ has 'foo/fn.bar.html'
3028
//@ has - '//*[@class="stab portability"]' 'Available on Android or Apple or Cygwin \
31-
// or DragonFly BSD or FreeBSD or Linux or NetBSD or OpenBSD or QNX Neutrino only.'
29+
// or DragonFly BSD or FreeBSD or Linux or NetBSD or OpenBSD only.'
3230
#[cfg(any(
3331
target_os = "android",
3432
target_os = "linux",
3533
target_os = "dragonfly",
3634
target_os = "freebsd",
3735
target_os = "netbsd",
3836
target_os = "openbsd",
39-
target_os = "nto",
40-
target_os = "qnx",
4137
target_vendor = "apple",
4238
target_os = "cygwin"
4339
))]

0 commit comments

Comments
 (0)