test/UnitClose.cpp |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 8b82efd2858dd49de05921d5fe3b7cf3125819b1
Author:     Miklos Vajna <[email protected]>
AuthorDate: Tue Feb 11 09:20:13 2020 +0100
Commit:     Miklos Vajna <[email protected]>
CommitDate: Tue Feb 11 10:02:17 2020 +0100

    test: increase timeout of UnitClose
    
    This now failed under sanitizers due to a timeout. Make the new limit 2
    minutes, sanitizers require 51 seconds for me (so we did not fit into
    the 30 seconds default).
    
    Change-Id: Ib8edb002b50e55b605152be5d50574c396964c25
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88424
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Miklos Vajna <[email protected]>

diff --git a/test/UnitClose.cpp b/test/UnitClose.cpp
index 864ac9490..fb1718ccc 100644
--- a/test/UnitClose.cpp
+++ b/test/UnitClose.cpp
@@ -49,6 +49,7 @@ class UnitClose : public UnitWSD
     TestResult testAlertAllUsers();
 
 public:
+    UnitClose();
     void invokeTest() override;
 };
 
@@ -209,6 +210,12 @@ UnitBase::TestResult UnitClose::testAlertAllUsers()
     return TestResult::Ok;
 }
 
+UnitClose::UnitClose()
+{
+    int timeout_minutes = 2;
+    setTimeout(timeout_minutes * 60 * 1000);
+}
+
 void UnitClose::invokeTest()
 {
     UnitBase::TestResult result = testCloseAfterClose();
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to