Przeglądaj źródła

Further tests for printing out directory names

., .., and / always seem to cause problems.
Benjamin Sago 8 lat temu
rodzic
commit
0c69eeca07
2 zmienionych plików z 4 dodań i 0 usunięć
  1. 3 0
      xtests/dirs
  2. 1 0
      xtests/run.sh

+ 3 - 0
xtests/dirs

@@ -0,0 +1,3 @@
+.
+..
+/

+ 1 - 0
xtests/run.sh

@@ -70,6 +70,7 @@ $exa $testcases/file-names-exts/music.* -I "*.ogg|*.mp3" -1 2>&1 | diff -q - $re
 # These directories are created in the VM user’s home directory (the default
 # location) when a Cargo build is done.
 (cd; $exa -1d target target/debug target/debug/build | diff -q - $results/dir_paths) || exit 1
+     $exa -1d . .. /                                 | diff -q - $results/dirs       || exit 1
 
 
 # Links