Skip to content

Instantly share code, notes, and snippets.

@mpartel
Created January 19, 2016 10:49
Show Gist options
  • Save mpartel/891ede826b987b694d26 to your computer and use it in GitHub Desktop.
Save mpartel/891ede826b987b694d26 to your computer and use it in GitHub Desktop.
Test case for bindfs issue #28
# Issue #28
testenv("", :title => "many files in a directory") do
mkdir('src/dir')
expected_entries = ['.', '..']
10000.times do |i|
touch("src/dir/#{i}")
expected_entries << i.to_s
end
assert { Dir.entries('mnt/dir').sort == expected_entries.sort }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment