test: update tests

This commit is contained in:
2026-07-12 22:15:25 +01:00
parent 24bcb18543
commit 181a6bac09
4 changed files with 12 additions and 12 deletions
+3 -3
View File
@@ -11,11 +11,11 @@ int main(int argc, const char **argv)
return -1; return -1;
} }
const char *path_cstr = argv[1]; const char *path = argv[1];
fx_path *path = fx_path_create_from_cstr(path_cstr);
fx_file *src = NULL; fx_file *src = NULL;
fx_result result = fx_file_open(NULL, path, FX_FILE_READ_ONLY, &src); fx_result result
= fx_file_open(NULL, FX_CSTR(path), FX_FILE_READ_ONLY, &src);
if (fx_result_is_error(result)) { if (fx_result_is_error(result)) {
fx_throw(result); fx_throw(result);
return -1; return -1;
+3 -3
View File
@@ -11,11 +11,11 @@ int main(int argc, const char **argv)
return -1; return -1;
} }
const char *path_cstr = argv[1]; const char *path = argv[1];
fx_path *path = fx_path_create_from_cstr(path_cstr);
fx_file *src = NULL; fx_file *src = NULL;
fx_result result = fx_file_open(NULL, path, FX_FILE_READ_ONLY, &src); fx_result result
= fx_file_open(NULL, FX_CSTR(path), FX_FILE_READ_ONLY, &src);
if (fx_result_is_error(result)) { if (fx_result_is_error(result)) {
fx_throw(result); fx_throw(result);
return -1; return -1;
+3 -3
View File
@@ -9,11 +9,11 @@ int main(int argc, const char **argv)
return -1; return -1;
} }
const char *path_cstr = argv[1]; const char *path = argv[1];
fx_path *path = fx_path_create_from_cstr(path_cstr);
fx_file *src = NULL; fx_file *src = NULL;
fx_result result = fx_file_open(NULL, path, FX_FILE_READ_ONLY, &src); fx_result result
= fx_file_open(NULL, FX_CSTR(path), FX_FILE_READ_ONLY, &src);
if (fx_result_is_error(result)) { if (fx_result_is_error(result)) {
fx_throw(result); fx_throw(result);
return -1; return -1;
+3 -3
View File
@@ -10,11 +10,11 @@ int main(int argc, const char **argv)
return -1; return -1;
} }
const char *path_cstr = argv[1]; const char *path = argv[1];
fx_path *path = fx_path_create_from_cstr(path_cstr);
fx_file *src = NULL; fx_file *src = NULL;
fx_result result = fx_file_open(NULL, path, FX_FILE_READ_ONLY, &src); fx_result result
= fx_file_open(NULL, FX_CSTR(path), FX_FILE_READ_ONLY, &src);
if (fx_result_is_error(result)) { if (fx_result_is_error(result)) {
fx_throw(result); fx_throw(result);
return -1; return -1;