fix(getcwd): capture return value #7991 (#7992)

This commit is contained in:
Benson Muite
2025-03-28 20:56:30 +03:00
committed by GitHub
parent 76d42e3f57
commit 88bf97c5da
+2 -1
View File
@@ -30,7 +30,7 @@ void test_read(void)
lv_fs_res_t res; lv_fs_res_t res;
char cur[512]; char cur[512];
getcwd(cur, 512); if(getcwd(cur, 512) != NULL) {
errno = 0; errno = 0;
void * a = fopen("src/test_files/readtest.txt", "r"); void * a = fopen("src/test_files/readtest.txt", "r");
printf("%s, %d, %p\n", cur, errno, a); printf("%s, %d, %p\n", cur, errno, a);
@@ -64,6 +64,7 @@ void test_read(void)
lv_fs_close(&fa); lv_fs_close(&fa);
lv_fs_close(&fb); lv_fs_close(&fb);
} }
}
void test_read_random(void) void test_read_random(void)
{ {