#include <cxxtest/TestSuite.h>
-#include <ext/stdio_filebuf.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include "parser/parser_builder.h"
#include "smt/command.h"
-
-typedef __gnu_cxx::stdio_filebuf<char> filebuf_gnu;
-
using namespace CVC4;
using namespace CVC4::parser;
using namespace CVC4::language::input;
void testEmptyFileInput() {
char *filename = mkTemp();
- /* FILE *fp = tmpfile(); */
- /* filebuf_gnu fs( fd, ios_base::out ); */
-
- /* ptr = tmpnam(filename); */
- /* std::fstream fs( ptr, fstream::out ); */
- /* fs.close(); */
-
checkEmptyInput(
ParserBuilder(d_exprManager,filename)
.withInputLanguage(LANG_CVC4)
);
remove(filename);
- // mkfifo(ptr, S_IWUSR | s_IRUSR);
free(filename);
}