fix(unittests): set working directory in add_test call

Set the test property WORKING_DIRECTORY in which to execute the test.

Signed-off-by: Arunachalam Ganapathy <arunachalam.ganapathy@arm.com>
Change-Id: I04e207a942efa2bd9fc69b1d3473ae9ac4e1de9f
diff --git a/cmake/Modules/UnitTestFramework.cmake b/cmake/Modules/UnitTestFramework.cmake
index b799aa0..48d3cf8 100644
--- a/cmake/Modules/UnitTestFramework.cmake
+++ b/cmake/Modules/UnitTestFramework.cmake
@@ -114,6 +114,7 @@
             NOT DEFINED arg_RUN_ISOLATED_TESTS)
             # Run all tests at once
             add_test(NAME "${arg_NAME}"
+                    WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
                     COMMAND ${CMAKE_BINARY_DIR}/$<CONFIG>/rmm.elf
                             -g${arg_NAME}
                             -r${arg_ITERATIONS})
@@ -122,6 +123,7 @@
             # run on isolation.
             foreach(TEST IN LISTS arg_RUN_ISOLATED_TESTS)
                 add_test(NAME "${arg_NAME}::${TEST}"
+                         WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
                          COMMAND ${CMAKE_BINARY_DIR}/$<CONFIG>/rmm.elf
                                  -sg${arg_NAME}
                                  -sn${TEST})