Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/openbsd.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: OpenBSD

# spell-checker:ignore sshfs usesh vmactions taiki esac fdescfs fdesc nextest copyback logind
# spell-checker:ignore sshfs usesh vmactions taiki esac fdescfs fdesc nextest copyback logind mlugg zigbuild liblibc rlib

env:
FEATURES: "feat_Tier1,feat_require_unix"
Expand Down Expand Up @@ -153,9 +153,16 @@ jobs:
cargo test --features ${{ env.FEATURES }} || FAULT=1
echo "::endgroup::"
fi
# TEMPORARY diagnostic: find which phase removes files from target/debug/deps
if (test -z "\$FAULT"); then
echo "::group::cargo test (uucore)"
cargo test --all-features -p uucore || FAULT=1
echo "[deps] after workspace: \$(ls target/debug/deps | wc -l) files; \$(ls -l target/debug/deps/liblibc-*.rlib 2>&1)"
cargo test --all-features -p uucore --no-run || FAULT=1
echo "[deps] after uucore build: \$(ls target/debug/deps | wc -l) files; \$(ls -l target/debug/deps/liblibc-*.rlib 2>&1)"
cargo test --all-features -p uucore --lib || FAULT=1
echo "[deps] after uucore unit tests: \$(ls target/debug/deps | wc -l) files; \$(ls -l target/debug/deps/liblibc-*.rlib 2>&1)"
cargo test --all-features -p uucore --doc || FAULT=1
echo "[deps] after uucore doc tests: \$(ls target/debug/deps | wc -l) files; \$(ls -l target/debug/deps/liblibc-*.rlib 2>&1)"
echo "::endgroup::"
fi
# Test building with make
Expand Down
13 changes: 10 additions & 3 deletions tests/by-util/test_tail.rs
Original file line number Diff line number Diff line change
Expand Up @@ -927,8 +927,13 @@ fn test_follow_with_pid() {

let (at, mut ucmd) = at_and_ucmd!();

let dummy_cmd = "sh";
let mut dummy = Command::new(dummy_cmd).spawn().unwrap();
// A process that just waits; with stdin detached, so it can't read from
// whatever feeds the test runner (on CI, the rest of the job script).
let mut dummy = Command::new("sleep")
.arg("100000")
.stdin(Stdio::null())
.spawn()
.unwrap();
let pid = dummy.id();

let mut child = ucmd
Expand Down Expand Up @@ -5426,9 +5431,11 @@ fn test_following_with_pid() {

let ts = TestScenario::new(util_name!());

// Plain seconds: a "d" suffix is a GNU extension the BSD sleep rejects.
#[cfg(not(windows))]
let mut sleep_command = Command::new("sleep")
.arg("999d")
.arg("100000")
.stdin(Stdio::null())
.spawn()
.expect("failed to start sleep command");
#[cfg(windows)]
Expand Down
Loading