Adding two new utility functions.
git-svn-id: svn://10.0.0.236/trunk@101907 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d81341dac0
commit
cdda8b8a36
@ -25,11 +25,32 @@
|
||||
var FAILED = "FAILED!: ";
|
||||
var STATUS = "STATUS: ";
|
||||
var BUGNUMBER = "BUGNUMBER: ";
|
||||
|
||||
var SECT_PREFIX = 'Section ';
|
||||
var SECT_SUFFIX = ' of test -';
|
||||
var VERBOSE = false;
|
||||
|
||||
var callStack = new Array();
|
||||
|
||||
/*
|
||||
* The test driver searches for such a phrase in the test output.
|
||||
* If such phrase exists, it will set n as the expected exit code.
|
||||
*/
|
||||
function expectExitCode(n)
|
||||
{
|
||||
|
||||
print('--- NOTE: IN THIS TESTCASE, WE EXPECT EXIT CODE ' + n + ' ---');
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Statuses current section of a test
|
||||
*/
|
||||
function inSection(x)
|
||||
{
|
||||
|
||||
return SECT_PREFIX + x + SECT_SUFFIX;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Report a failure in the 'accepted' manner
|
||||
*/
|
||||
|
||||
@ -25,11 +25,32 @@
|
||||
var FAILED = "FAILED!: ";
|
||||
var STATUS = "STATUS: ";
|
||||
var BUGNUMBER = "BUGNUMBER: ";
|
||||
|
||||
var VERBOSE = false;
|
||||
|
||||
var SECT_PREFIX = 'Section ';
|
||||
var SECT_SUFFIX = ' of test -';
|
||||
var callStack = new Array();
|
||||
|
||||
/*
|
||||
* The test driver searches for such a phrase in the test output.
|
||||
* If such phrase exists, it will set n as the expected exit code.
|
||||
*/
|
||||
function expectExitCode(n)
|
||||
{
|
||||
|
||||
print('--- NOTE: IN THIS TESTCASE, WE EXPECT EXIT CODE ' + n + ' ---');
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Statuses current section of a test
|
||||
*/
|
||||
function inSection(x)
|
||||
{
|
||||
|
||||
return SECT_PREFIX + x + SECT_SUFFIX;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Report a failure in the 'accepted' manner
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user