# Errored job, not sure why (test passed and returned 0) (Solved)

**URL:** <https://travis-ci.community/t/errored-job-not-sure-why-test-passed-and-returned-0-solved/3763>\
**Category:** Windows\
**Created:** [June 17, 2019, 12:43pm UTC](https://travis-ci.community/t/errored-job-not-sure-why-test-passed-and-returned-0-solved/3763 "2019-06-17T12:43:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vincent-noel](https://avatars.discourse-cdn.com/v4/letter/v/d6d6ee/32.png) [@vincent-noel](https://travis-ci.community/u/vincent-noel)\
**Post date:** [June 17, 2019, 12:43pm UTC](https://travis-ci.community/t/errored-job-not-sure-why-test-passed-and-returned-0-solved/3763/1 "2019-06-17T12:43:27Z")

</div>

Hi,

I’ve been trying to setup multi-os tests for an c++ software for a few days, and it is finally working ! Only problem is that travis shows that the windows job failed, even though the script returned 0.

To give you more details, I’m first installing msys2 via chocolatey, then installing make, flex, bison, gcc and diffutils using pacman, compiling the code, and running a simple test. (All of this is done via bash -lc calls, using powershell, as described [here](https://travis-ci.community/t/how-do-i-use-mingw-and-msys2-shells/1787/2))

The travis build is accessible here : [https://travis-ci.org/vincent-noel/MaBoSS-env-2.0/jobs/546709910#L24](https://travis-ci.org/vincent-noel/MaBoSS-env-2.0/jobs/546709910#L24)

Any comment, information would be greatly appreciated !

Vincent

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [June 17, 2019, 1:11pm UTC](https://travis-ci.community/t/errored-job-not-sure-why-test-passed-and-returned-0-solved/3763/2 "2019-06-17T13:11:17Z")

</div>

Why are you running `Stop-Computer`? Does it return any status? If so, what?

---

<div class="post-metadata">

**Author:** ![vincent-noel](https://avatars.discourse-cdn.com/v4/letter/v/d6d6ee/32.png) [@vincent-noel](https://travis-ci.community/u/vincent-noel)\
**Post date:** [June 17, 2019, 1:29pm UTC](https://travis-ci.community/t/errored-job-not-sure-why-test-passed-and-returned-0-solved/3763/3 "2019-06-17T13:29:16Z")

</div>

I’m running it because otherwise the build won’t stop, and fail after 10 mins without (something related to msys2 install).  
True, I haven’t thought about testing its return value.  
I’ll have a look, thanks !

---

<div class="post-metadata">

**Author:** ![jayvdb](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/jayvdb/32/1966_2.png) [@jayvdb](https://travis-ci.community/u/jayvdb)\
**Post date:** [June 17, 2019, 1:49pm UTC](https://travis-ci.community/t/errored-job-not-sure-why-test-passed-and-returned-0-solved/3763/4 "2019-06-17T13:49:08Z")

</div>

[Build times out when msys was installed](https://travis-ci.community/t/build-times-out-when-msys-was-installed/3498) might help

It says to do `taskkill -IM "gpg-agent.exe" -F`

---

<div class="post-metadata">

**Author:** ![vincent-noel](https://avatars.discourse-cdn.com/v4/letter/v/d6d6ee/32.png) [@vincent-noel](https://travis-ci.community/u/vincent-noel)\
**Post date:** [June 17, 2019, 2:23pm UTC](https://travis-ci.community/t/errored-job-not-sure-why-test-passed-and-returned-0-solved/3763/5 "2019-06-17T14:23:42Z")

</div>

It works !

I needed to add the taskkill command at the end of msys2 install.

Not sure if the problem was indeed the Stop-Computer. I had removed it when I added the taskkill, and it works. I restored it as a test, and it still works.

Thanks a lot jayvdb !
