diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2020-01-17 20:49:38 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2020-01-21 13:39:42 +0000 |
commit | 04f3460fd22f12b82fd606944f6d4c8433b36c42 (patch) | |
tree | b3d8e87b33feb0140fadd4b05564b8b7e6b77870 /common/Unit.hpp | |
parent | 1c6b4be2ce84e43a4646c52d8376c19af53d945c (diff) |
test: switch to parallel tests based on Unit framework.
Increase a few timeouts, bin old-style standalone unit tests,
fix a number of bugs.
Change-Id: Ia3d59466ecb9a9443807ba3445d04dd5f77e3dba
Diffstat (limited to 'common/Unit.hpp')
-rw-r--r-- | common/Unit.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/common/Unit.hpp b/common/Unit.hpp index 63975514b..c403100c2 100644 --- a/common/Unit.hpp +++ b/common/Unit.hpp @@ -138,11 +138,17 @@ public: return *Global; } + static std::string getUnitLibPath() { return std::string(UnitLibPath); } + private: - void setHandle(void *dlHandle) { _dlHandle = dlHandle; } + void setHandle(void *dlHandle) + { + _dlHandle = dlHandle; + } static UnitBase *linkAndCreateUnit(UnitType type, const std::string& unitLibPath); void *_dlHandle; + static char *UnitLibPath; bool _setRetValue; int _retValue; int _timeoutMilliSeconds; |