mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 18:51:15 -03:00
Eliminate wopen()
It was large and mostly unnecessary. Prefer wopen() followed by fdopen().
This commit is contained in:
@@ -3369,7 +3369,7 @@ static void test_universal_ok_to_save() {
|
||||
say(L"Testing universal Ok to save");
|
||||
if (system("mkdir -p test/fish_uvars_test/")) err(L"mkdir failed");
|
||||
const char *contents = "# VERSION: 99999.99\n";
|
||||
FILE *fp = wfopen(UVARS_TEST_PATH, "w");
|
||||
FILE *fp = fopen(wcs2string(UVARS_TEST_PATH).c_str(), "w");
|
||||
assert(fp && "Failed to open UVARS_TEST_PATH for writing");
|
||||
fwrite(contents, std::strlen(contents), 1, fp);
|
||||
fclose(fp);
|
||||
|
||||
Reference in New Issue
Block a user