kinect/codes/Azure-Kinect-Sensor-SDK/tests/example/test.cpp

20 lines
446 B
C++
Raw Normal View History

2024-03-06 18:05:53 +00:00
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include <k4a/k4a.h>
#include <gtest/gtest.h>
TEST(k4a, example)
{
k4a_device_t device = nullptr;
ASSERT_EQ(K4A_RESULT_SUCCEEDED, k4a_device_open(K4A_DEVICE_DEFAULT, &device));
k4a_device_close(device);
device = nullptr;
}
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}