about summary refs log tree commit diff stats
path: root/subx/040---tests.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-10-21 21:04:38 -0700
committerKartik Agaram <vc@akkartik.com>2018-10-21 21:17:22 -0700
commitf3612481b1b589fff31ecd10ab0ddb083a5c8d35 (patch)
tree0796e7d3a796625c320109d3f06c5e77852d2085 /subx/040---tests.cc
parent417a05ee7dbecbf846c54cd1e186e000415fb0a3 (diff)
downloadmu-f3612481b1b589fff31ecd10ab0ddb083a5c8d35.tar.gz
4713
Initial sketch of a dependency-injected wrapper around the exit() syscall.

I don't have the primitives yet, just a sketch of how they should work
-- and a passing test for non-local jumps without support for passing the
exit status to the caller.
Diffstat (limited to 'subx/040---tests.cc')
-rw-r--r--subx/040---tests.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/subx/040---tests.cc b/subx/040---tests.cc
index cf515253..993ec44e 100644
--- a/subx/040---tests.cc
+++ b/subx/040---tests.cc
@@ -1,4 +1,11 @@
-//: Automatically aggregating functions into test suites.
+//: Automatically aggregate functions starting with 'test-' into a test suite
+//: called 'run-tests'. Running this function will run all tests.
+//:
+//: This is actually SubX's first (trivial) compiler. We generate all the code
+//: needed for the 'run-tests' function.
+//:
+//: By convention, temporary functions needed by tests will start with
+//: '_test-'.
 
 //: We don't rely on any transforms running in previous layers, but this layer
 //: knows about labels and will emit labels for previous layers to transform.