mirror of
https://github.com/uutils/coreutils.git
synced 2025-08-31 07:47:52 +00:00
unix_sockets is deprecated, use std::os::unix::net instead
This commit is contained in:
parent
5b6cd6146b
commit
306272bf60
8 changed files with 22 additions and 51 deletions
|
@ -453,9 +453,9 @@ fn test_dev_full_show_all() {
|
|||
#[ignore]
|
||||
fn test_domain_socket() {
|
||||
use std::io::prelude::*;
|
||||
use std::os::unix::net::UnixListener;
|
||||
use std::sync::{Arc, Barrier};
|
||||
use std::thread;
|
||||
use unix_socket::UnixListener;
|
||||
|
||||
let dir = tempfile::Builder::new()
|
||||
.prefix("unix_socket")
|
||||
|
|
|
@ -3,8 +3,6 @@ extern crate libc;
|
|||
extern crate regex;
|
||||
#[cfg(not(windows))]
|
||||
extern crate tempfile;
|
||||
#[cfg(unix)]
|
||||
extern crate unix_socket;
|
||||
|
||||
use self::regex::Regex;
|
||||
use crate::common::util::*;
|
||||
|
|
|
@ -5,8 +5,6 @@ extern crate libc;
|
|||
extern crate regex;
|
||||
#[cfg(not(windows))]
|
||||
extern crate tempfile;
|
||||
#[cfg(unix)]
|
||||
extern crate unix_socket;
|
||||
|
||||
use self::regex::Regex;
|
||||
use crate::common::util::*;
|
||||
|
@ -2037,7 +2035,7 @@ fn test_ls_indicator_style() {
|
|||
// Test sockets. Because the canonical way of making sockets to test is with
|
||||
// TempDir, we need a separate test.
|
||||
{
|
||||
use self::unix_socket::UnixListener;
|
||||
use std::os::unix::net::UnixListener;
|
||||
|
||||
let dir = tempfile::Builder::new()
|
||||
.prefix("unix_socket")
|
||||
|
|
|
@ -3,8 +3,6 @@ extern crate libc;
|
|||
extern crate regex;
|
||||
#[cfg(not(windows))]
|
||||
extern crate tempfile;
|
||||
#[cfg(unix)]
|
||||
extern crate unix_socket;
|
||||
|
||||
use self::regex::Regex;
|
||||
use crate::common::util::*;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue