3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

deal with unit test failure cases, fixes #132 #133

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2015-06-17 17:30:10 -07:00
parent 6a50f10b8b
commit 18374aa12a
4 changed files with 8 additions and 6 deletions

View file

@ -101,9 +101,10 @@ public:
resize_data(0);
#if _WINDOWS
errno_t err = fopen_s(&m_file, fname, "rb");
m_ok = err == 0;
m_ok = (m_file != NULL) && (err == 0);
#else
m_file = fopen(fname, "rb");
m_ok = (m_file != NULL);
#endif
}
~line_reader() {