summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bx/tests/os_test.cpp
diff options
context:
space:
mode:
author Branimir Karadžić <branimirkaradzic@gmail.com>2017-02-05 13:56:35 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2017-02-05 13:56:35 +0100
commit1607745432f50099711d7aee355111111e66ff51 (patch)
treec4eaec8008f6e0283ca652cdffb55a34eca9b9bb /3rdparty/bx/tests/os_test.cpp
parent193e8c8a89a4be5c63909cdbbcca4d9d6f8fee02 (diff)
Update BGFX and BX (nw)
Diffstat (limited to '3rdparty/bx/tests/os_test.cpp')
-rw-r--r--3rdparty/bx/tests/os_test.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/3rdparty/bx/tests/os_test.cpp b/3rdparty/bx/tests/os_test.cpp
new file mode 100644
index 00000000000..e6aeb314fbe
--- /dev/null
+++ b/3rdparty/bx/tests/os_test.cpp
@@ -0,0 +1,20 @@
+/*
+ * Copyright 2010-2017 Branimir Karadzic. All rights reserved.
+ * License: https://github.com/bkaradzic/bx#license-bsd-2-clause
+ */
+
+#include "test.h"
+#include <bx/os.h>
+
+TEST_CASE("getProcessMemoryUsed", "")
+{
+ REQUIRE(0 != bx::getProcessMemoryUsed() );
+// DBG("bx::getProcessMemoryUsed %d", bx::getProcessMemoryUsed() );
+}
+
+TEST_CASE("getTempPath", "")
+{
+ char tmpDir[512];
+ uint32_t len = BX_COUNTOF(tmpDir);
+ REQUIRE(bx::getTempPath(tmpDir, &len) );
+}