Use magma_create_connection2 in unit test

Change-Id: I85d50c72452fb34044f7afcb02ceb0e0cd4610b8
diff --git a/tests/unit_tests/test_drm_command_buffer.cc b/tests/unit_tests/test_drm_command_buffer.cc
index 2437bbb..3c916ea 100644
--- a/tests/unit_tests/test_drm_command_buffer.cc
+++ b/tests/unit_tests/test_drm_command_buffer.cc
@@ -24,7 +24,7 @@
 
 class TestDrmCommandBuffer {
 public:
-   TestDrmCommandBuffer() { connection_ = magma_create_connection(0, 0); }
+   TestDrmCommandBuffer() { magma_create_connection2(0, &connection_); }
 
    ~TestDrmCommandBuffer() { magma_release_connection(connection_); }
 
@@ -197,18 +197,15 @@
 
 TEST(DrmCommandBuffer, NoBuffers)
 {
-   TestDrmCommandBuffer test;
-   test.NoBuffers();
+   TestDrmCommandBuffer().NoBuffers();
 }
 
 TEST(DrmCommandBuffer, SomeBuffers)
 {
-   TestDrmCommandBuffer test;
-   test.WithBuffers(false, 1, 2);
+   TestDrmCommandBuffer().WithBuffers(false, 1, 2);
 }
 
 TEST(DrmCommandBuffer, BuffersWithRelocs)
 {
-   TestDrmCommandBuffer test;
-   test.WithBuffers(true, 3, 2);
+   TestDrmCommandBuffer().WithBuffers(true, 3, 2);
 }