Skip to content

Commit a0021e5

Browse files
Valgrind fails in CI (#790)
Co-authored-by: Mattis Böckle <[email protected]>
1 parent cfa951e commit a0021e5

File tree

4 files changed

+6
-21
lines changed

4 files changed

+6
-21
lines changed

effekt/jvm/src/main/scala/effekt/Runner.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ trait Runner[Executable] {
9494
*/
9595
def eval(executable: Executable)(using C: Context): Unit = {
9696
val execFile = build(executable)
97-
val valgrindArgs = Seq("--leak-check=full", "--quiet", "--log-file=valgrind.log", "--error-exitcode=1")
97+
val valgrindArgs = Seq("--leak-check=full", "--undef-value-errors=no", "--quiet", "--log-file=valgrind.log", "--error-exitcode=1")
9898
val process = if (C.config.valgrind())
9999
Process("valgrind", valgrindArgs ++ (execFile +: Context.config.runArgs()))
100100
else

effekt/jvm/src/test/scala/effekt/LLVMTests.scala

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ class LLVMTests extends EffektTests {
1919
examplesDir / "benchmarks",
2020
)
2121

22-
lazy val bugs: List[File] = List(
23-
// Jump to the invalid address stated on the next line
24-
examplesDir / "benchmarks" / "input_output" / "dyck_one.effekt",
25-
examplesDir / "benchmarks" / "input_output" / "number_matrix.effekt",
26-
examplesDir / "benchmarks" / "input_output" / "word_count_ascii.effekt",
27-
examplesDir / "benchmarks" / "input_output" / "word_count_utf8.effekt",
28-
)
29-
3022
/**
3123
* Documentation of currently failing tests and their reason
3224
*/
@@ -60,5 +52,5 @@ class LLVMTests extends EffektTests {
6052
examplesDir / "pos" / "issue733.effekt",
6153
)
6254

63-
override lazy val ignored: List[File] = bugs ++ missingFeatures
55+
override lazy val ignored: List[File] = missingFeatures
6456
}

effekt/jvm/src/test/scala/effekt/StdlibTests.scala

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,6 @@ class StdlibLLVMTests extends StdlibTests {
4040
override def debug = sys.env.get("EFFEKT_DEBUG").nonEmpty
4141

4242
override def ignored: List[File] = List(
43-
// Syscall param write(buf) points to uninitialised byte(s)
44-
examplesDir / "stdlib" / "io" / "filesystem" / "files.effekt",
45-
examplesDir / "stdlib" / "io" / "filesystem" / "async_file_io.effekt",
46-
47-
// Conditional jump or move depends on uninitialised value(s)
48-
examplesDir / "stdlib" / "io" / "filesystem" / "wordcount.effekt",
49-
5043
// String comparison using `<`, `<=`, `>`, `>=` is not implemented yet on LLVM
5144
examplesDir / "stdlib" / "string" / "compare.effekt",
5245

libraries/llvm/io.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ void c_fs_close(Int file, Stack stack) {
177177
/**
178178
* Maps the libuv error code to a stable (platform independent) numeric value.
179179
*
180-
* Tries to use most common errno integer values, but introduces fresh values (> 200)
181-
* for those without common errno values.
180+
* Tries to use most common error number integer values, but introduces fresh values (> 200)
181+
* for those without common error number values.
182182
*/
183-
Int c_error_number(Int errno) {
184-
switch (errno) {
183+
Int c_error_number(Int error) {
184+
switch (error) {
185185
case UV_EPERM: return 1; // EPERM
186186
case UV_ENOENT: return 2; // ENOENT
187187
case UV_ESRCH: return 3; // ESRCH

0 commit comments

Comments
 (0)