Skip to content

Conversation

@nfischer
Copy link
Member

This fixes several issues with the cp -Ru test cases:

  • Originally, I noticed the touch syntax looked wrong
  • After fixing that, I was trying to figure out how the test case was
    even passing before. I realized one of the assertions was wrong (it
    was asserting sourceFile contents, but should have asserted destFile
    contents)
  • I realized the test should have created a nested destination
    directory; without proper nesting, the sourceFile never actually
    collided with destFile during the copy
  • Lastly, I swapped touch() usage to use hardcoded timestamps for test
    consistency

@nfischer nfischer added the test label Jan 26, 2022
This fixes several issues with the cp -Ru test cases:

* Originally, I noticed the touch syntax looked wrong
* After fixing that, I was trying to figure out how the test case was
  even passing before. I realized one of the assertions was wrong (it
  was asserting sourceFile contents, but should have asserted destFile
  contents)
* I realized the test should have created a nested destination
  directory; without proper nesting, the sourceFile never actually
  collided with destFile during the copy
* Lastly, I swapped touch() usage to use hardcoded timestamps for test
  consistency
@nfischer nfischer merged commit a329b49 into master Jan 27, 2022
@nfischer nfischer deleted the test-fix-cp-ru branch January 27, 2022 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants