PowerShell Settings environment variable--Go Unit test exit status 3221225781

Source: Internet
Author: User

Error occurred while performing unit tests

Go Test-run testimage

The error prompts are as follows:

Exit Status 3221225781

This error means that you need to load the corresponding library file can not be found, loading the corresponding library file on the learning.

But unit testing does not want to take all the dependencies to the corresponding directory, using environment variables

Because Vscode is using PowerShell with the previous Cmd.exe and not quite the same, CMD only need set command on line such as: Set classpath=%classpath%; C\ls\java. Jar

PowerShell Environment variables:

$ENV:P Ath

You can view the contents of all path,

Setting environment variables is also simple:

$ENV:p ath= $Env:P ath+ "; E:/bin"  

Set environment variables for the system: right-My Computer-advanced-environment variable-path you need to restart the program that requires the environment variable

After Setup, you need to restart the program which requires the environment variable after setting, you need to restart the programs that needs to use the environment variableEthereal translationData Source:

PowerShell Settings environment variable--Go Unit test exit status 3221225781

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.