mirror of
https://github.com/vale981/arb
synced 2025-03-05 17:31:38 -05:00
Add a message if tmpfile() returns NULL
This commit is contained in:
parent
2f6465ee30
commit
02aa1fbae0
1 changed files with 4 additions and 0 deletions
|
@ -33,6 +33,10 @@ int main()
|
|||
arb_randtest_special(x, state, 1 + n_randint(state, 1000), 1 + n_randint(state, 100));
|
||||
|
||||
tmp = tmpfile();
|
||||
if (tmp == NULL) {
|
||||
flint_printf("FAIL (creating temporary file) iter = %wd\n\n", iter);
|
||||
flint_abort();
|
||||
}
|
||||
arb_dump_file(tmp, x);
|
||||
fflush(tmp);
|
||||
rewind(tmp);
|
||||
|
|
Loading…
Add table
Reference in a new issue