Yes, I was looking into the code. Is my exception the one you were expecting or is it an error in the test? It looks like the findProcessPid() method doesn't find any pid, even If I run the bash-watch-echo.sh script in other terminal.
jk
----- Original Message -----
From: "Thomas Segismont" tsegismo@redhat.com To: rhq-users@lists.fedorahosted.org Sent: Tuesday, January 29, 2013 4:37:27 PM Subject: Re: Sigar getProcState bug on other platforms?
Thanks Jirka. Did you have a look at the test case?
Le 29/01/2013 16:33, Jiri Kremser a écrit :
Hi, I got:
Exception in thread "main" java.lang.RuntimeException: Expected process to be down at step[0] at test.ProcStateTest.testIsRunning(ProcStateTest.java:118) at test.ProcStateTest.main(ProcStateTest.java:29)
on my Fedora17, 32bit (PAE)
Agent and server were down at that moment. JK
----- Original Message -----
From: "Thomas Segismont" tsegismo@redhat.com To: rhq-devel@lists.fedorahosted.org, rhq-users@lists.fedorahosted.org Sent: Monday, January 28, 2013 12:13:17 PM Subject: Sigar getProcState bug on other platforms?
Hi,
Last week I may have found a bug in Sigar[1]. I think it does not only affect Linux amd64 so I ask for your help to determine on which other platforms it may be present.
I pushed a very simple project on GitHub[2]. You can fork it or simply download source zip file.
Then open a terminal, go to the project directory and run: # mvn clean package # java -cp target/sigar/sigar.jar:target/classes/ test/ProcStateTest
If it runs silently then your platform may not be affected. Otherwise, can you send me the error message and your platform type.
Of course if you think it's not a Sigar bug and that I missed something please tell me. I had no response in Sigar user forum so far.
Thanks for your help!
Regards, Thomas
[1] http://communities.vmware.com/message/2183651#2183651 [2] https://github.com/tsegismont/sigar-procstate-test _______________________________________________ rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/rhq-users