Skip to content

Commit a8f17ea

Browse files
committed
stderr capture in tests
1 parent 167d417 commit a8f17ea

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/runner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
std::string runInterpreter(const std::string& file) {
1212
#if defined(_WIN32)
13-
std::string command = "eigerc -s \"" + file + "\"";
13+
std::string command = "eigerc -s \"" + file + "\" 2>&1";
1414
#else
15-
std::string command = "./eigerc -s \"" + file + "\"";
15+
std::string command = "./eigerc -s \"" + file + "\" 2>&1";
1616
#endif
1717

1818
FILE* pipe = popen(command.c_str(), "r");

tests/variables.eig.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
10
55
100
66
20
7-
RUNTIME_ERROR: Variable y is not defined at line 21
7+
RUNTIME_ERROR: Symbol y is unbound at line 21

0 commit comments

Comments
 (0)