File: absolute_extended_cwd.rs

package info (click to toggle)
rust-path-abs 0.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 300 kB
  • sloc: makefile: 2
file content (13 lines) | stat: -rw-r--r-- 459 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
//! This file tests PathAbs::new() for Windows when the current directory
//! uses extended-length path syntax (like `\\?\C:\`).

// These tests are already run for Unix in absolute_regular_cwd.rs, and Unix
// doesn't have "extended-length path syntax", so we can make them Windows-only
// here.
#[cfg(windows)]
mod absolute_helpers;

#[cfg(windows)]
fn setup() {
    std::env::set_current_dir(r"\\?\C:\").expect("Could not change to a regular directory");
}