-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for GAP running out of memory
- Loading branch information
1 parent
cf99d6c
commit eef306a
Showing
8 changed files
with
78 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
ListWithIdenticalEntries(2^50, 'a'); | ||
quit; | ||
ListWithIdenticalEntries(2^50, true); | ||
quit; | ||
ListWithIdenticalEntries(2^50, 2); | ||
quit; | ||
quit; | ||
|
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
gap> ListWithIdenticalEntries(2^50, 'a'); | ||
Error, Cannot allocate 1125899906842633 bytes: cannot extend the workspace any more!! | ||
not in any function at *stdin*:2 | ||
type 'quit;' to quit to outer loop | ||
brk> quit; | ||
gap> ListWithIdenticalEntries(2^50, true); | ||
Error, Cannot allocate 140737488355336 bytes: cannot extend the workspace any more!! | ||
not in any function at *stdin*:2 | ||
type 'quit;' to quit to outer loop | ||
brk> quit; | ||
gap> ListWithIdenticalEntries(2^50, 2); | ||
Error, Cannot allocate 9007199254741000 bytes: cannot extend the workspace any more!! | ||
not in any function at *stdin*:2 | ||
type 'quit;' to quit to outer loop | ||
brk> quit; | ||
gap> quit; |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
l := []; | ||
l[2^50] := 1; | ||
quit; | ||
l[2^50] := 2; | ||
quit; | ||
l[3] := 3; | ||
l; | ||
quit; | ||
|
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
gap> l := []; | ||
[ ] | ||
gap> l[2^50] := 1; | ||
Error, Cannot allocate 9007199254741000 bytes: cannot extend the workspace any more!!!! | ||
not in any function at *stdin*:3 | ||
type 'quit;' to quit to outer loop | ||
brk> quit; | ||
gap> l[2^50] := 2; | ||
Error, Cannot allocate 9007199254741000 bytes: cannot extend the workspace any more!!!! | ||
not in any function at *stdin*:3 | ||
type 'quit;' to quit to outer loop | ||
brk> quit; | ||
gap> l[3] := 3; | ||
3 | ||
gap> l; | ||
[ ,, 3 ] | ||
gap> quit; |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
EmptyPlist(2^50); | ||
quit; | ||
EmptyPlist(2^50); | ||
quit; | ||
quit; | ||
|
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
gap> EmptyPlist(2^50); | ||
Error, Cannot allocate 9007199254741000 bytes: cannot extend the workspace any more!! | ||
not in any function at *stdin*:2 | ||
type 'quit;' to quit to outer loop | ||
brk> quit; | ||
gap> EmptyPlist(2^50); | ||
Error, Cannot allocate 9007199254741000 bytes: cannot extend the workspace any more!! | ||
not in any function at *stdin*:2 | ||
type 'quit;' to quit to outer loop | ||
brk> quit; | ||
gap> quit; |
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