diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2011-07-15 11:53:05 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2011-07-15 11:53:05 -0400 |
commit | c33cf379f25e9a1a3780a73805749616fa07de66 (patch) | |
tree | b526ca70c58d80f72d109f29dcbe4770f0c10cc3 /BuildParams | |
parent | e3b5d9fc5c638beff4eed25a366dc5cc1c0478b1 (diff) |
Add test to verify C++-to-Python LLSD notation sequence.
Write a sequence of LLSDSerialize::toNotation() calls separated by newlines to
a data file, then read lines and parse using llbase.llsd.parse(). Verify that
this produces expected data even when one item is a string containing newlines.
Generalize python() helper function to allow using any of the NamedTempFile
constructor forms.
Allow specifying expected Python rc (default 0) and use this to verify an
intentional sys.exit(17). This is better than previous sys.exit(0) test
because when, at one point, NamedTempFile failed to write file data, running
Python on an empty script file still terminates with rc 0. A nonzero rc
verifies that we've written the file, that Python is running it and that we're
retrieving its rc.
Diffstat (limited to 'BuildParams')
0 files changed, 0 insertions, 0 deletions