WASI can't read its own writes without an explicit fflush()
This commit is contained in:
parent
d257ec5780
commit
80807b30c5
@ -190,6 +190,7 @@ int main(void)
|
|||||||
if (xmain() != 0) {
|
if (xmain() != 0) {
|
||||||
return 99;
|
return 99;
|
||||||
}
|
}
|
||||||
|
fflush(fp_res);
|
||||||
rewind(fp_res);
|
rewind(fp_res);
|
||||||
if ((fp_out = fopen(TEST_NAME_OUT, "r")) == NULL) {
|
if ((fp_out = fopen(TEST_NAME_OUT, "r")) == NULL) {
|
||||||
perror("fopen(" TEST_NAME_OUT ")");
|
perror("fopen(" TEST_NAME_OUT ")");
|
||||||
|
Loading…
Reference in New Issue
Block a user