Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib/osutil, lib/scanner: Run symlink test on Windows when possible #4548

Closed
wants to merge 1 commit into from

Conversation

calmh
Copy link
Member

@calmh calmh commented Nov 25, 2017

Purpose

Adds a shit-ugly function to create symlinks on Windows in tests only. The walk test now runs on Windows instead of being skipped (not visible in the code; but the build server now has one more passed test and one fewer skipped). Other tests could do the same.

@calmh calmh changed the title lib/scanner: Run symlink test on Windows when possible lib/osutil, lib/scanner: Run symlink test on Windows when possible Nov 25, 2017
// '/' does not work in link's content
oldname = filepath.FromSlash(oldname)

// need the exact location of the oldname when its relative to determine if its a directory
Copy link
Member

@imsodin imsodin Nov 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're really worried about the dictionary attacks: Its->it's
This should have gone to review, such that I don't wast time with multiple such non-issues.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:D none of this code is written by us.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh damn, I don't read the copyright stuff. But that's a relieve, because that functions is s**t xD

@AudriusButkevicius
Copy link
Member

@st-review merge

@st-review
Copy link

👌 Merged as 429b3a0. Thanks, @calmh!

@st-review st-review closed this Nov 25, 2017
st-review pushed a commit that referenced this pull request Nov 25, 2017
@calmh calmh deleted the winsym branch December 17, 2017 02:40
@st-review st-review added the pr-merged Legacy label used in the past for pull requests merged to the main tree label Jan 15, 2018
@calmh calmh restored the winsym branch November 1, 2018 06:07
@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Apr 30, 2019
@syncthing syncthing locked and limited conversation to collaborators Apr 30, 2019
@calmh calmh deleted the winsym branch March 23, 2020 07:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion pr-merged Legacy label used in the past for pull requests merged to the main tree
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants