mirror of
https://github.com/sharkdp/fd.git
synced 2024-09-27 20:41:30 +02:00
parent
7c86c7d585
commit
a36f2cf61c
@ -1202,6 +1202,13 @@ fn test_type() {
|
|||||||
fn test_type_executable() {
|
fn test_type_executable() {
|
||||||
use std::os::unix::fs::OpenOptionsExt;
|
use std::os::unix::fs::OpenOptionsExt;
|
||||||
|
|
||||||
|
// This test assumes the current user isn't root
|
||||||
|
// (otherwise if the executable bit is set for any level, it is executable for the current
|
||||||
|
// user)
|
||||||
|
if users::get_current_uid() == 0 {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let te = TestEnv::new(DEFAULT_DIRS, DEFAULT_FILES);
|
let te = TestEnv::new(DEFAULT_DIRS, DEFAULT_FILES);
|
||||||
|
|
||||||
fs::OpenOptions::new()
|
fs::OpenOptions::new()
|
||||||
|
Loading…
Reference in New Issue
Block a user