summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bx/tests/os_test.cpp
diff options
context:
space:
mode:
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) );
+}