Răsfoiți Sursa

tests: minor changes

Michele Caini 3 ani în urmă
părinte
comite
41081204f9
2 a modificat fișierele cu 4 adăugiri și 4 ștergeri
  1. 2 2
      test/lib/meta_plugin/main.cpp
  2. 2 2
      test/lib/meta_plugin_std/main.cpp

+ 2 - 2
test/lib/meta_plugin/main.cpp

@@ -18,9 +18,9 @@ TEST(Lib, Meta) {
     ud.ctx = entt::locator<entt::meta_ctx>::handle();
 
     cr_plugin ctx;
-    cr_plugin_load(ctx, PLUGIN);
-
     ctx.userdata = &ud;
+
+    cr_plugin_load(ctx, PLUGIN);
     cr_plugin_update(ctx);
 
     entt::meta<double>().conv<int>();

+ 2 - 2
test/lib/meta_plugin_std/main.cpp

@@ -17,9 +17,9 @@ TEST(Lib, Meta) {
     ud.ctx = entt::locator<entt::meta_ctx>::handle();
 
     cr_plugin ctx;
-    cr_plugin_load(ctx, PLUGIN);
-
     ctx.userdata = &ud;
+
+    cr_plugin_load(ctx, PLUGIN);
     cr_plugin_update(ctx);
 
     entt::meta<double>().conv<int>();