test: update tests
This commit is contained in:
+3
-3
@@ -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
@@ -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
@@ -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
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user