File tree Expand file tree Collapse file tree 3 files changed +27
-5
lines changed
effekt/jvm/src/test/scala/effekt Expand file tree Collapse file tree 3 files changed +27
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ class LLVMTests extends EffektTests {
20
20
)
21
21
22
22
/**
23
- * Documentation of currently failing tests and their reason
23
+ * Documentation of currently failing tests because of missing features
24
+ * and their reason
24
25
*/
25
26
lazy val missingFeatures : List [File ] = List (
26
27
// Regex
@@ -52,5 +53,22 @@ class LLVMTests extends EffektTests {
52
53
examplesDir / " pos" / " issue733.effekt" ,
53
54
)
54
55
55
- override lazy val ignored : List [File ] = missingFeatures
56
+ override lazy val ignored : List [File ] = missingFeatures ++ noValgrind(examplesDir)
57
+ }
58
+
59
+ /**
60
+ * Documentation of tests that succeed in running, but fail valgrind
61
+ * and their reason
62
+ */
63
+ def noValgrind (examplesDir : File ): List [File ] = List (
64
+ examplesDir / " llvm" / " prompt-duplication.effekt" ,
65
+ )
66
+
67
+ class LLVMNoValgrindTests extends EffektTests {
68
+ def backendName = " llvm"
69
+
70
+ override def valgrind = false
71
+ override def debug = false
72
+
73
+ override lazy val positives : List [File ] = noValgrind(examplesDir)
56
74
}
Original file line number Diff line number Diff line change
1
+ PANIC: Continuation invoked itself
1
2
[error] Process exited with non-zero exit code 1.
2
- [error] Valgrind log:
Original file line number Diff line number Diff line change 3
3
4
4
#include <stdio.h>
5
5
6
+ // TODO:
7
+ // this should _morally_ be using `stderr`, but we don't tee it in tests
8
+ // see PR #823 & issue #815 for context
9
+
6
10
void hole () {
7
- fprintf ( stderr , "PANIC: Reached a hole in the program\n" );
11
+ printf ( "PANIC: Reached a hole in the program\n" );
8
12
exit (1 );
9
13
}
10
14
11
15
void duplicated_prompt () {
12
- fprintf ( stderr , "PANIC: Continuation invoked itself\n" );
16
+ printf ( "PANIC: Continuation invoked itself\n" );
13
17
exit (1 );
14
18
}
15
19
You can’t perform that action at this time.
0 commit comments