You're building src_go.exe (-o of go build), and running orabench.exe.

walter....@gmail.com a következőt írta (2020. szeptember 21., hétfő, 
8:51:19 UTC+2):

> My code is here:
>
> [image: Screenshot 2020-09-21 084403.png]
>
> My script is here:
>
>
> [image: Screenshot 2020-09-21 084604.png]
>
> Logfile:
>
> [image: Screenshot 2020-09-21 084819.png]
>
> Same problem with os.Exit(1).
>
> What am I doing wrong?
> On Monday, 21 September 2020 at 05:38:11 UTC+2 Kurtis Rader wrote:
>
>> I also wrote a trivial Go program that did nothing more than 
>> `panic("WTF")` and it results in an exit status (ERRORLEVEL) of two in both 
>> a MSYS2 bash shell and a native cmd.exe shell. So, it is likely you are not 
>> testing what you think you are testing.
>>
>> On Sun, Sep 20, 2020 at 7:44 PM Walter Weinmann <walter....@gmail.com> 
>> wrote:
>>
>>> Sorry - unfortunately I am a beginner.
>>>
>>> I have a Golang program that runs on an error and ends with panic(). 
>>> When running on Windows 10 the value of ERRORLEVEL is 0, the same happens 
>>> when the program is terminated with exit(1).
>>>
>>> What am I doing wrong? 
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "golang-nuts" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to golang-nuts...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/golang-nuts/a875f3d3-0f51-4cd8-91d5-5cf08f51223an%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/golang-nuts/a875f3d3-0f51-4cd8-91d5-5cf08f51223an%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> -- 
>> Kurtis Rader
>> Caretaker of the exceptional canines Junior and Hank
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/51159fc4-9399-4b92-8cbd-fd6ad97bbe28n%40googlegroups.com.

Reply via email to