File: moreIconsDialog-accesses-internet.diff

package info (click to toggle)
libreoffice 4%3A24.8.4-1~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 3,960,108 kB
  • sloc: cpp: 4,316,532; xml: 458,506; java: 271,366; python: 78,889; ansic: 33,872; perl: 30,332; javascript: 19,344; sh: 11,722; makefile: 10,069; yacc: 8,536; cs: 6,703; objc: 1,969; lex: 1,379; asm: 1,231; awk: 996; pascal: 940; csh: 20; sed: 5
file content (21 lines) | stat: -rw-r--r-- 909 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/cui/source/dialogs/AdditionsDialog.cxx b/cui/source/dialogs/AdditionsDialog.cxx
index f0dedf626acf..ec330b584acd 100644
--- a/cui/source/dialogs/AdditionsDialog.cxx
+++ b/cui/source/dialogs/AdditionsDialog.cxx
@@ -276,9 +276,13 @@ SearchAndParseThread::SearchAndParseThread(AdditionsDialog* pDialog, const bool
     , m_bIsFirstLoading(isFirstLoading)
 {
     // if we are running a UITest, e.g. UITest_sw_options then
-    // don't attempt to downloading anything
-    static const bool bUITest = getenv("LIBO_TEST_UNIT");
-
+    // don't attempt to downloading anything. Use AUTOPKGTEST_TMP in Debian
+    // so that the test actually is run in autopkgtest where we are sure
+    // we have internet (needs-internet)
+    static bool bUITest;
+    if (getenv("AUTOPKGTEST_TMP") == NULL) { bUITest = true; } // don't disable test
+    else { bUITest = false; }
+ 
     m_bUITest = bUITest;
 }