GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Disable tests on Windows that use `ed` by cakebaker · Pull Request #50 · uutils/diffutils

Conversation

@cakebaker

@cakebaker cakebaker commented Apr 4, 2024

Copy link
Copy Markdown
Contributor

This PR disables three tests on Windows which currently fail because there is no ed program. It's related to #39, though doesn't fix it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@cakebaker
Disable tests on Windows that use ed
2d9e625
@codecov

codecov Bot commented Apr 4, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.82%. Comparing base (d863fe4) to head (2d9e625).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #50      +/-   ##
==========================================
+ Coverage   76.79%   76.82%   +0.02%     
==========================================
  Files           9        9              
  Lines        2564     2567       +3     
  Branches      657      657              
==========================================
+ Hits         1969     1972       +3     
  Misses        466      466              
  Partials      129      129              
Flag Coverage Δ
macos_latest 77.00% <100.00%> (+0.02%) ⬆️
ubuntu_latest 76.86% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sylvestre
sylvestre merged commit 096aa1d into uutils:main Apr 4, 2024
@cakebaker
cakebaker deleted the disable_tests_using_ed_on_windows branch April 4, 2024 06:49
@marc-hb

marc-hb commented May 7, 2026

Copy link
Copy Markdown
Contributor

No big deal but I think it would be better not to give Windows users the wrong impression that these tests are passing on Windows. I mean like this instead:

--- a/src/ed_diff.rs
+++ b/src/ed_diff.rs
@@ -181,6 +181,7 @@ mod tests {
     }
 
     #[test]
+    #[cfg_attr(target_os = "windows", ignore = "no 'ed' on windows")]
     fn test_permutations() {
         let target = "target/ed-diff/";
         // test all possible six-line files.

This prints the following instead of making the tests silently disappear on Windows:

test ed_diff::tests::test_permutations ... ignored, no 'ed' on windows

I can submit a PR but reverting 2d9e625 would unfortunately git conflict with #226 - so I won't submit anything yet.

PS: following #226, it would be even better to dynamically skip based on whether ed is found or not. After all, ed can be missing on Linux too! See #39 (comment). But that would require "upgrading" to a non-std test crate:

  • Add ability to ignore tests at runtime. rust-lang/rust#68007
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@marc-hb marc-hb mentioned this pull request May 7, 2026
Some tests require ed and fail if it is not installed #39
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@cakebaker @marc-hb @sylvestre
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.