Skip to content

Commit c40d20e

Browse files
committed
Added some additional edge case testing handlers
1 parent df67b4d commit c40d20e

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def handler(event):
2+
# Don't stop
3+
i = 1
4+
while i == 1:
5+
continue # spin
6+
return "Finished..." # supposed to be unreachable

testing/registry/supermall/goshopping

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
gcc ./supermall.c -o supermall
2+
./supermall
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import os
2+
import stat
3+
4+
def handler (event):
5+
os.chmod("goshopping", stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
6+
os.execv('/bin/sh', ['sh', 'goshopping']) # Goodbye?
7+
return "Done! Hehehe"
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include <stdlib.h>
2+
3+
int main()
4+
{
5+
for(;;)
6+
{
7+
malloc(sizeof(int));// say goodbye, container
8+
}
9+
10+
return 0;
11+
}

0 commit comments

Comments
 (0)