Skip to content

Commit

Permalink
Attempt to fiddle with open() mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
leto committed Jun 1, 2010
1 parent 1b192c8 commit d02c64e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion plparrot.h
Expand Up @@ -21,8 +21,15 @@
".end\n" \
"\n" \
".namespace [\"PLParrot\"]\n" \
".sub open\n" \
" .param pmc stuff :slurpy\n" \
" # die \"Attempt to open \"\n" \
" .return(42)\n" \
".end\n" \
"\n" \
".sub open :method\n" \
" .param pmc args :slurpy\n" \
" .param string file\n" \
" .param string mode\n" \
" # die \"Attempt to open \"\n" \
" .return(42)\n" \
".end\n" \
Expand Down
9 changes: 8 additions & 1 deletion plparrot_secure.pir
Expand Up @@ -15,8 +15,15 @@
.end

.namespace ["PLParrot"]
.sub open
.param pmc stuff :slurpy
# die "Attempt to open "
.return(42)
.end

.sub open :method
.param pmc args :slurpy
.param string file
.param string mode
# die "Attempt to open "
.return(42)
.end
Expand Down

0 comments on commit d02c64e

Please sign in to comment.