• R/O
  • SSH

libctools: Commit

This library contains code that extends and simplifies different operations
for C language based programs.


Commit MetaInfo

Revisiónde47e5c207cb728fbd0f8c53705d8fdd43a59e9d (tree)
Tiempo2022-08-30 00:11:12
AutorSergey Gusarov <laborer2008@gmai...>
CommiterSergey Gusarov

Log Message

test_io: Fixed on windows

Cambiar Resumen

Diferencia incremental

diff -r 6ca105934f62 -r de47e5c207cb tests/src/os/test_io.c
--- a/tests/src/os/test_io.c Mon Aug 29 17:54:58 2022 +0300
+++ b/tests/src/os/test_io.c Mon Aug 29 18:11:12 2022 +0300
@@ -52,7 +52,12 @@
5252 TEST_ASSERT_TRUE(fileSize == -1);
5353
5454 absolutePath = getAbsolutePath(CT_NULL, CT_NULL, 0);
55+#if defined(CT_OS_UNIX)
5556 TEST_ASSERT_TRUE(absolutePath == CT_NULL);
57+#elif defined(CT_OS_WINDOWS)
58+ // Windows function return current directory in such case. We test here compilability, so don't care
59+ TEST_ASSERT_TRUE(absolutePath != CT_NULL);
60+#endif
5661
5762 createDirStatus = createDir(CT_NULL, true);
5863 TEST_ASSERT_TRUE(createDirStatus);
Show on old repository browser