summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-06-27 19:16:20 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-06-27 19:16:44 -0400
commit86da865d82a977c4db084327274912d228f2e9f5 (patch)
tree594796764ecf3469558906345642ab68fdd26db9 /tests.sh
parent257a7060906a25e299e63a367272251a8dc05b83 (diff)
downloadbfs-86da865d82a977c4db084327274912d228f2e9f5.tar.xz
color: Fix a crash if LS_COLORS ends in *
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh
index fd31036..32019a3 100755
--- a/tests.sh
+++ b/tests.sh
@@ -617,6 +617,7 @@ bfs_tests=(
test_color_missing_colon
test_color_no_stat
test_color_L_no_stat
+ test_color_star
test_execdir_plus
@@ -2099,6 +2100,11 @@ function test_color_L_no_stat() {
LS_COLORS="mh=0:ex=0:sg=0:su=0:st=0:ow=0:tw=0:*.txt=01:" bfs_diff -L rainbow -color
}
+function test_color_star() {
+ # Regression test: don't segfault on LS_COLORS="*"
+ LS_COLORS="*" bfs_diff rainbow -color
+}
+
function test_deep() {
closefrom 4