mirror of
https://github.com/reactos/ahk_tests.git
synced 2024-11-26 21:10:40 +00:00
[AHK_Java_6.25]
Stop the Quick Starter service after the tests. While running normally, this service emits debug and breaks rosautotest diagnostics. svn path=/trunk/ahk_tests/; revision=2318
This commit is contained in:
parent
7efacf441a
commit
43c4433e38
31
Java/6.25/stop_jqs.ahk
Normal file
31
Java/6.25/stop_jqs.ahk
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Designed for Java 6.25
|
||||
* Copyright (C) 2016 Sylvain Petreolle
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
TestName = 3.stop_jqs
|
||||
Process, Exist, jqs.exe
|
||||
if ErrorLevel
|
||||
{
|
||||
TestsTotal++
|
||||
Run sc.exe stop JavaQuickStarterService
|
||||
Process, WaitClose, jqs.exe, 30.0
|
||||
If ErrorLevel
|
||||
TestsFailed("Unable to stop JavaQuickStarterService")
|
||||
Else
|
||||
TestsOK("Successfully stopped JavaQuickStarterService")
|
||||
}
|
@ -25,6 +25,7 @@ params =
|
||||
|
||||
1.install
|
||||
2.run_java_gui_app
|
||||
3.stop_jqs
|
||||
|
||||
)
|
||||
|
||||
@ -44,6 +45,10 @@ if CheckParam()
|
||||
{
|
||||
#include run_java_gui_app.ahk
|
||||
}
|
||||
else if 1 = 3.stop_jqs
|
||||
{
|
||||
#include stop_jqs.ahk
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user