mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
Merge pull request #2611 from sylvestre/freebsd-warnings
Remove some warnings on freebsd
This commit is contained in:
commit
64a65370b0
2 changed files with 4 additions and 1 deletions
|
@ -4,7 +4,7 @@ use crate::common::util::*;
|
||||||
use filetime::FileTime;
|
use filetime::FileTime;
|
||||||
use rust_users::*;
|
use rust_users::*;
|
||||||
use std::os::unix::fs::PermissionsExt;
|
use std::os::unix::fs::PermissionsExt;
|
||||||
#[cfg(not(windows))]
|
#[cfg(not(any(windows, target_os = "freebsd")))]
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
use std::thread::sleep;
|
use std::thread::sleep;
|
||||||
|
@ -551,7 +551,9 @@ fn test_install_copy_then_compare_file_with_extra_mode() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const STRIP_TARGET_FILE: &str = "helloworld_installed";
|
const STRIP_TARGET_FILE: &str = "helloworld_installed";
|
||||||
|
#[cfg(not(any(windows, target_os = "freebsd")))]
|
||||||
const SYMBOL_DUMP_PROGRAM: &str = "objdump";
|
const SYMBOL_DUMP_PROGRAM: &str = "objdump";
|
||||||
|
#[cfg(not(any(windows, target_os = "freebsd")))]
|
||||||
const STRIP_SOURCE_FILE_SYMBOL: &str = "main";
|
const STRIP_SOURCE_FILE_SYMBOL: &str = "main";
|
||||||
|
|
||||||
fn strip_source_file() -> &'static str {
|
fn strip_source_file() -> &'static str {
|
||||||
|
|
|
@ -16,6 +16,7 @@ fn get_file_times(at: &AtPath, path: &str) -> (FileTime, FileTime) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(target_os = "freebsd"))]
|
||||||
fn get_symlink_times(at: &AtPath, path: &str) -> (FileTime, FileTime) {
|
fn get_symlink_times(at: &AtPath, path: &str) -> (FileTime, FileTime) {
|
||||||
let m = at.symlink_metadata(path);
|
let m = at.symlink_metadata(path);
|
||||||
(
|
(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue