OSDN Git Service

test: move vaInitialize/vaTerminate to a global test environment
[android-x86/hardware-intel-common-vaapi.git] / test / test_main.cpp
index 55a5b09..0f87856 100644 (file)
  */
 
 #include "test.h"
+#include "i965_test_environment.h"
 
 int main(int argc, char **argv)
 {
     ::testing::InitGoogleTest(&argc, argv);
 
+    /** NOTE: gtest takes ownership of the I965TestEnvironment instance **/
+    ::testing::AddGlobalTestEnvironment(I965TestEnvironment::instance());
+
     return RUN_ALL_TESTS();
 }