about summary refs log tree commit diff
path: root/src/fuzzer
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2012-09-18 11:19:52 -0700
committerNiko Matsakis <niko@alum.mit.edu>2012-09-18 11:29:53 -0700
commitefa6675f1d632f5d524f4a7a18838c6ee1c0c447 (patch)
tree766244783f25f9933d1b2bcc8e8d993367033bdd /src/fuzzer
parent3b013cd800ce675a445220105911bbefd2427e47 (diff)
make filetype() include the "." (fixes #3412)
Diffstat (limited to 'src/fuzzer')
-rw-r--r--src/fuzzer/fuzzer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fuzzer/fuzzer.rs b/src/fuzzer/fuzzer.rs
index c4dd4bcf4bc..9ee36769ff1 100644
--- a/src/fuzzer/fuzzer.rs
+++ b/src/fuzzer/fuzzer.rs
@@ -26,7 +26,7 @@ fn contains(haystack: ~str, needle: ~str) -> bool {
 }
 
 fn find_rust_files(files: &mut ~[Path], path: &Path) {
-    if path.filetype() == Some(~"rs") && !contains(path.to_str(), ~"utf8") {
+    if path.filetype() == Some(~".rs") && !contains(path.to_str(), ~"utf8") {
         // ignoring "utf8" tests because something is broken
         vec::push(*files, *path);
     } else if os::path_is_dir(path)