summaryrefslogtreecommitdiffstats
path: root/tests/shared/filesystem.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shared/filesystem.h')
-rw-r--r--tests/shared/filesystem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/shared/filesystem.h b/tests/shared/filesystem.h
index 45ee41c85b..03d5cd56e6 100644
--- a/tests/shared/filesystem.h
+++ b/tests/shared/filesystem.h
@@ -25,6 +25,11 @@
#ifndef SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE // MinGW
#define SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE (0x2)
#endif
+QT_BEGIN_NAMESPACE
+namespace QTest {
+ static QString uncServerName() { return qgetenv("COMPUTERNAME"); }
+}
+QT_END_NAMESPACE
#endif
// QTemporaryDir-based helper class for creating file-system hierarchies and cleaning up.