Skip to content

Commit 433edaa

Browse files
authored
Test: Fix Windows widestring tests built with non-MSVC (#178)
1 parent e092bbb commit 433edaa

6 files changed

Lines changed: 6 additions & 6 deletions

test/test_opendialog_native.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ int main(void) {
2929
#ifdef _MSC_VER
3030
_putws(outPath);
3131
#else
32-
fputws(outPath, stdin);
32+
fputws(outPath, stdout);
3333
#endif
3434
#else
3535
puts(outPath);

test/test_opendialog_native_with.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ int main(void) {
3232
#ifdef _MSC_VER
3333
_putws(outPath);
3434
#else
35-
fputws(outPath, stdin);
35+
fputws(outPath, stdout);
3636
#endif
3737
#else
3838
puts(outPath);

test/test_pickfolder_native.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ int main(void) {
2222
#ifdef _MSC_VER
2323
_putws(outPath);
2424
#else
25-
fputws(outPath, stdin);
25+
fputws(outPath, stdout);
2626
#endif
2727
#else
2828
puts(outPath);

test/test_pickfolder_native_with.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ int main(void) {
2323
#ifdef _MSC_VER
2424
_putws(outPath);
2525
#else
26-
fputws(outPath, stdin);
26+
fputws(outPath, stdout);
2727
#endif
2828
#else
2929
puts(outPath);

test/test_savedialog_native.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int main(void) {
3535
#ifdef _MSC_VER
3636
_putws(savePath);
3737
#else
38-
fputws(savePath, stdin);
38+
fputws(savePath, stdout);
3939
#endif
4040
#else
4141
puts(savePath);

test/test_savedialog_native_with.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ int main(void) {
3939
#ifdef _MSC_VER
4040
_putws(savePath);
4141
#else
42-
fputws(savePath, stdin);
42+
fputws(savePath, stdout);
4343
#endif
4444
#else
4545
puts(savePath);

0 commit comments

Comments
 (0)