diff --git a/tests/alias.err b/tests/alias.err deleted file mode 100644 index 7defa80dc..000000000 --- a/tests/alias.err +++ /dev/null @@ -1,6 +0,0 @@ - -#################### -# Avoid regressions of issue #3860 wherein the first word of the alias ends with a semicolon - -#################### -# Bare `alias` should list the aliases we have created and nothing else diff --git a/tests/alias.in b/tests/alias.in deleted file mode 100644 index 308667811..000000000 --- a/tests/alias.in +++ /dev/null @@ -1,13 +0,0 @@ -logmsg Avoid regressions of issue \#3860 wherein the first word of the alias ends with a semicolon -function foo - echo ran foo -end -alias my_alias "foo; and echo foo ran" -my_alias - -alias a-2='echo "hello there"' - -logmsg Bare `alias` should list the aliases we have created and nothing else -# We have to exclude two aliases because they're an artifact of the unit test -# framework and we can't predict the definition. -alias | grep -Ev '^alias (fish_indent|fish_key_reader) ' diff --git a/tests/alias.out b/tests/alias.out deleted file mode 100644 index d91105385..000000000 --- a/tests/alias.out +++ /dev/null @@ -1,10 +0,0 @@ - -#################### -# Avoid regressions of issue #3860 wherein the first word of the alias ends with a semicolon -ran foo -foo ran - -#################### -# Bare `alias` should list the aliases we have created and nothing else -alias a-2 'echo "hello there"' -alias my_alias 'foo; and echo foo ran' diff --git a/tests/checks/alias.fish b/tests/checks/alias.fish new file mode 100644 index 000000000..fb3bb3f7c --- /dev/null +++ b/tests/checks/alias.fish @@ -0,0 +1,18 @@ +#RUN: %fish %s +# Avoid regressions of issue \#3860 wherein the first word of the alias ends with a semicolon +function foo + echo ran foo +end +alias my_alias "foo; and echo foo ran" +my_alias +# CHECK: ran foo +# CHECK: foo ran + +alias a-2='echo "hello there"' + +# Bare `alias` should list the aliases we have created and nothing else +# We have to exclude two aliases because they're an artifact of the unit test +# framework and we can't predict the definition. +alias | grep -Ev '^alias (fish_indent|fish_key_reader) ' +# CHECK: alias a-2 'echo "hello there"' +# CHECK: alias my_alias 'foo; and echo foo ran'