-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RefC] [Test] Valgrind support & Fix invalid memory read of strSubstr (…
- Loading branch information
1 parent
cf4c87c
commit 5f643c0
Showing
26 changed files
with
73 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,3 @@ | |
#include "runtime.h" | ||
#include "stringOps.h" | ||
#include "threads.h" | ||
|
||
extern IORef_Storage *global_IORef_Storage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
. ../../testutils.sh | ||
|
||
idris2 --cg refc -o refc_args TestArgs.idr > /dev/null | ||
./build/exec/refc_args a b | ||
idris2 --cg refc -o refc_args TestArgs.idr | ||
$VALGRIND ./build/exec/refc_args a b | ||
./build/exec/refc_args c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
. ../../testutils.sh | ||
|
||
idris2 --cg refc -o refc_buffer TestBuffer.idr > /dev/null | ||
./build/exec/refc_buffer | ||
idris2 --cg refc -o refc_buffer TestBuffer.idr | ||
$VALGRIND ./build/exec/refc_buffer | ||
base64 -i testWrite.buf | ||
|
||
rm testWrite.buf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
. ../../testutils.sh | ||
|
||
idris2 --cg refc -o refc_doubles TestDoubles.idr > /dev/null | ||
./build/exec/refc_doubles | ||
idris2 --cg refc -o refc_doubles TestDoubles.idr | ||
$VALGRIND ./build/exec/refc_doubles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
. ../../testutils.sh | ||
|
||
idris2 --cg refc -o testGC TestGarbageCollect.idr > /dev/null | ||
idris2 --cg refc -o testGC TestGarbageCollect.idr | ||
|
||
./build/exec/testGC | ||
$VALGRIND ./build/exec/testGC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
. ../../testutils.sh | ||
|
||
idris2 --cg refc -o refc_integers TestIntegers.idr > /dev/null | ||
./build/exec/refc_integers | ||
idris2 --cg refc -o refc_integers TestIntegers.idr | ||
$VALGRIND ./build/exec/refc_integers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
. ../../testutils.sh | ||
|
||
idris2 --cg refc -o reverse Reverse.idr > /dev/null | ||
./build/exec/reverse | ||
idris2 --cg refc -o reverse Reverse.idr | ||
$VALGRIND ./build/exec/reverse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
. ../../testutils.sh | ||
|
||
idris2 --cg refc -o test ControlAppMonadTest.idr > /dev/null | ||
|
||
./build/exec/test | ||
idris2 --cg refc -o test ControlAppMonadTest.idr | ||
$VALGRIND ./build/exec/test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
. ../../testutils.sh | ||
|
||
idris2 --cg refc -o bits_case BitsCase.idr > /dev/null | ||
./build/exec/bits_case | ||
idris2 --cg refc -o bits_case BitsCase.idr | ||
$VALGRIND ./build/exec/bits_case |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
. ../../testutils.sh | ||
|
||
idris2 --cg refc -o test Test.idr > /dev/null | ||
./build/exec/test | ||
idris2 --cg refc -o test Test.idr | ||
$VALGRIND ./build/exec/test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
. ../../testutils.sh | ||
|
||
idris2 --cg refc -o refc001 Tail.idr > /dev/null | ||
./build/exec/refc001 | ||
idris2 --cg refc -o refc001 Tail.idr | ||
$VALGRIND ./build/exec/refc001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
. ../../testutils.sh | ||
|
||
idris2 --cg refc -o refc002 RecordProjection.idr > /dev/null | ||
./build/exec/refc002 | ||
idris2 --cg refc -o refc002 RecordProjection.idr | ||
$VALGRIND ./build/exec/refc002 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
. ../../testutils.sh | ||
|
||
idris2 --cg refc -o refc003 Issue1191.idr > /dev/null | ||
./build/exec/refc003 | ||
idris2 --cg refc -o refc003 Issue1191.idr | ||
$VALGRIND ./build/exec/refc003 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
. ../../testutils.sh | ||
|
||
idris2 --cg refc Issue1843.idr -o test | ||
|
||
./build/exec/test | ||
$VALGRIND ./build/exec/test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,13 @@ Hello, world | |
dlrow ,olleH | ||
|
||
el | ||
ld | ||
2 : ld | ||
0 : | ||
H | ||
|
||
|
||
|
||
, world | ||
'e' | ||
abc | ||
a | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
. ../../testutils.sh | ||
|
||
idris2 --cg refc -p contrib -o refc_strings TestStrings.idr > /dev/null | ||
./build/exec/refc_strings | ||
idris2 --cg refc -p contrib -o refc_strings TestStrings.idr | ||
$VALGRIND ./build/exec/refc_strings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters