Browse Source

Add symbolic link for printf in case of command-not-found

mail6543210 7 years ago
parent
commit
9352f6913a
  1. 1
      test/fast/Unit tests/nvm_ls_current

1
test/fast/Unit tests/nvm_ls_current

@ -21,6 +21,7 @@ rm -rf "$TEST_DIR" @@ -21,6 +21,7 @@ rm -rf "$TEST_DIR"
mkdir "$TEST_DIR"
ln -s "$(command which which)" "$TEST_DIR/which"
ln -s "$(command which dirname)" "$TEST_DIR/dirname"
ln -s "$(command which printf)" "$TEST_DIR/printf"
[ "$(PATH="$TEST_DIR" nvm_ls_current)" = "none" ] || die 'when node not installed, nvm_ls_current did not return "none"'
[ "@$(PATH="$TEST_DIR" nvm_ls_current 2> /dev/stdout 1> /dev/null)@" = "@@" ] || die 'when node not installed, nvm_ls_current returned error output'

Loading…
Cancel
Save