Skip to content

Commit

Permalink
plib: remove PROJECT_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
fox0 committed Oct 26, 2024
1 parent 1a6247c commit 55346ce
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion file/cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ fn main() -> ExitCode {
textdomain(env!("PROJECT_NAME")).unwrap();
bind_textdomain_codeset(env!("PROJECT_NAME"), "UTF-8").unwrap();

let mut args = Args::parse();
let args = Args::parse();

match cmp_main(&args) {
Ok(x) => ExitCode::from(x),
Expand Down
2 changes: 1 addition & 1 deletion file/tests/cmp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// SPDX-License-Identifier: MIT
//

use plib::{run_test, TestPlan};
use plib::testing::{run_test, TestPlan};

fn run_test_helper(
args: &[&str],
Expand Down
2 changes: 1 addition & 1 deletion file/tests/dd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::fs::File;
use std::io::Read;
use std::path::PathBuf;

use plib::{run_test_u8, TestPlanU8};
use plib::testing::{run_test_u8, TestPlanU8};

fn get_test_file_path(filename: &str) -> PathBuf {
let mut path = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
Expand Down
2 changes: 1 addition & 1 deletion file/tests/file/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use std::{env, path::PathBuf};

use plib::{run_test, TestPlan};
use plib::testing::{run_test, TestPlan};

fn file_test(args: &[&str], expected_output: &str, expected_error: &str) {
let str_args: Vec<String> = args.iter().map(|s| String::from(*s)).collect();
Expand Down
2 changes: 1 addition & 1 deletion file/tests/find/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::fs::{remove_file, File};
use std::io::Write;

use plib::{run_test, TestPlan};
use plib::testing::{run_test, TestPlan};

fn run_test_find(
args: &[&str],
Expand Down
2 changes: 1 addition & 1 deletion file/tests/od/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// SPDX-License-Identifier: MIT
//

use plib::{run_test, TestPlan};
use plib::testing::{run_test, TestPlan};

fn od_test(args: &[&str], test_data: &str, expected_output: &str) {
let str_args: Vec<String> = args.iter().map(|s| String::from(*s)).collect();
Expand Down
4 changes: 0 additions & 4 deletions plib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,4 @@ pub mod sccsfile;
pub mod testing;
pub mod utmpx;

pub const PROJECT_NAME: &str = "posixutils-rs";

pub const BUFSZ: usize = 8 * 1024;

pub use testing::*;

0 comments on commit 55346ce

Please sign in to comment.