Skip to content
Browse files

Updated owl to fix bug on generate

Added the test for the garbage collector
UNIT TESTS FUCK YEAH
  • Loading branch information...
1 parent 98e8c9a commit 968d7b43d9c0dae2efa8add3b23907ce836683f9 @bahostetterlewis bahostetterlewis committed Sep 27, 2012
Showing with 12 additions and 1 deletion.
  1. +2 −1 owl.py
  2. +4 −0 owl/expected/gc_test_2_free.result
  3. +6 −0 owl/tests/gc_test_2_free.test
View
3 owl.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
import argparse #parse cmd line arg flags
from os import walk #will allow for traversing files in the test directory
from os import getcwd #get the working directory
@@ -176,7 +177,7 @@ def GenerateResultFiles(testObj, outTuple, outFile):
outFile_Write = open(outFile, 'w')
#we need to decode because the subprocess tuple of outTuple is binary encoded
outFile_Write.write(dumps({"stdout": outTuple[0].decode("UTF-8"), "stderr":outTuple[1].decode("UTF-8")}, indent=4))
- return True
+ return {"StdoutMatch" : True, "StderrMatch" : True}
###############################################################################################
###############################################################################################
View
4 owl/expected/gc_test_2_free.result
@@ -0,0 +1,4 @@
+{
+ "stderr": "",
+ "stdout": "Created: 2\nFreed: 2\nCycles: 0\nRuns: 1\n"
+}
View
6 owl/tests/gc_test_2_free.test
@@ -0,0 +1,6 @@
+{
+ "name": "GC Free Hash and Ref",
+ "binary": "./src/testbed",
+ "args": ["gc"],
+ "input": ""
+}

0 comments on commit 968d7b4

Please sign in to comment.
Something went wrong with that request. Please try again.