vcs-svn: rename check_overflow arguments for clarity
[gitweb.git] / t / t4026-color.sh
index 49eced20e7f9346ac6d52891c271ab3ef6d0982b..3726a0e2012e534623ddbdd71da04f177c32d4d0 100755 (executable)
@@ -73,4 +73,20 @@ test_expect_success 'extra character after attribute' '
        invalid_color "dimX"
 '
 
+test_expect_success 'unknown color slots are ignored (diff)' '
+       git config color.diff.nosuchslotwilleverbedefined white &&
+       git diff --color
+'
+
+test_expect_success 'unknown color slots are ignored (branch)' '
+       git config color.branch.nosuchslotwilleverbedefined white &&
+       git branch -a
+'
+
+test_expect_success 'unknown color slots are ignored (status)' '
+       git config color.status.nosuchslotwilleverbedefined white || exit
+       git status
+       case $? in 0|1) : ok ;; *) false ;; esac
+'
+
 test_done