diff options
Diffstat (limited to 'tests/popup_test.cpp')
-rw-r--r-- | tests/popup_test.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/popup_test.cpp b/tests/popup_test.cpp index e2e1e3d..d08747e 100644 --- a/tests/popup_test.cpp +++ b/tests/popup_test.cpp @@ -25,13 +25,19 @@ using namespace CCHECKER; -int main(void) +int main(int argc, char** argv) { - LogDebug("Cert-checker start!"); + LogDebug("Cert-checker popup-test start!"); + + int timeout = 60; + if (argc > 1) { + timeout = atoi(argv[1]); + } + LogDebug("popup-test timeout: " << timeout); setlocale(LC_ALL, ""); - UI::UIBackend ui(20); // timeout 20 seconds + UI::UIBackend ui(timeout); app_t app(std::string("test_APP_ID"), std::string("test PKG ID"), @@ -40,6 +46,6 @@ int main(void) ui.call_popup(app); - LogDebug("Cert-checker exit!"); + LogDebug("Cert-checker popup-test exit!"); return 0; } |