This library contains code that extends and simplifies different operations
for C language based programs.
Revisión | de47e5c207cb728fbd0f8c53705d8fdd43a59e9d (tree) |
---|---|
Tiempo | 2022-08-30 00:11:12 |
Autor | Sergey Gusarov <laborer2008@gmai...> |
Commiter | Sergey Gusarov |
test_io: Fixed on windows
@@ -52,7 +52,12 @@ | ||
52 | 52 | TEST_ASSERT_TRUE(fileSize == -1); |
53 | 53 | |
54 | 54 | absolutePath = getAbsolutePath(CT_NULL, CT_NULL, 0); |
55 | +#if defined(CT_OS_UNIX) | |
55 | 56 | 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 | |
56 | 61 | |
57 | 62 | createDirStatus = createDir(CT_NULL, true); |
58 | 63 | TEST_ASSERT_TRUE(createDirStatus); |