r=a=edburns
Updates build/Makefile.win (create dir. bin/classes) build/Makefile (create dir. bin/classes) build/compile.mk (DEBUG support) build/rules.mk (Changed order of LIBS and add MOZ_DEBUG flag) build/test.html (updated test.html) build/README (updated README) src/JNI/Makefile (Changed JAR action) src/JNI/Makefile.win (Changed JAR action) src/include/ojiapitests.h (Resolve bug 52340) src/JNI/ClassOperation/Makefile (Add FindClass_8 Test) New files README (Updated README) FAQ (Frequently asked questions) script/test.html (Default test.html to be loaded for all test cases) script/OJIValidTests.lst (List of Tests Cases that have to PASS) src/Killer/kill.bat (compilation script for killer.exe) src/Killer/killer.cpp.win98 (for killing VC++ debug window for win98) git-svn-id: svn://10.0.0.236/trunk@82274 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
|
||||
//mozilla specific headers
|
||||
#include "nspr.h"
|
||||
#include "nsString2.h"
|
||||
#include "nsString.h"
|
||||
|
||||
#define OJI_TEST_RESULTS "OJITestResults.txt"
|
||||
#define OJI_TESTS_LIST "OJITests.lst"
|
||||
@@ -109,7 +109,7 @@ public:
|
||||
static TestResult* PASS(char *comment) {
|
||||
char *msg = (char*)calloc(1, PL_strlen(comment)+1024);
|
||||
sprintf(msg, "Method %s", comment);
|
||||
CBufDescriptor *bufDescr = new CBufDescriptor(msg, PR_FALSE, PL_strlen(msg)+1, PL_strlen(msg));
|
||||
CBufDescriptor *bufDescr = new CBufDescriptor((const char*)msg, PR_FALSE, PL_strlen(msg)+1, PL_strlen(msg));
|
||||
nsString *str = new nsAutoString(*bufDescr);
|
||||
return new TestResult(PASS_value, *str);
|
||||
}
|
||||
@@ -121,7 +121,7 @@ public:
|
||||
static TestResult* FAIL(char *method, nsresult rc) {
|
||||
char *comment = (char*)calloc(1, PL_strlen(method)+1024);
|
||||
sprintf(comment, "Method %s returned %X", method, rc);
|
||||
CBufDescriptor *bufDescr = new CBufDescriptor(comment, PR_FALSE, PL_strlen(comment)+1, PL_strlen(comment));
|
||||
CBufDescriptor *bufDescr = new CBufDescriptor((const char*)comment, PR_FALSE, PL_strlen(comment)+1, PL_strlen(comment));
|
||||
nsString *str = new nsAutoString(*bufDescr);
|
||||
return new TestResult(FAIL_value, *str);
|
||||
}
|
||||
@@ -129,13 +129,13 @@ public:
|
||||
static TestResult* FAIL(char *method, char* comment, nsresult rc) {
|
||||
char *outComment = (char*)calloc(1, PL_strlen(method)+1024);
|
||||
sprintf(outComment, "Method %s returned %X: %s", method, rc, comment);
|
||||
CBufDescriptor *bufDescr = new CBufDescriptor(comment, PR_FALSE, PL_strlen(comment)+1, PL_strlen(comment));
|
||||
CBufDescriptor *bufDescr = new CBufDescriptor((const char*)comment, PR_FALSE, PL_strlen(comment)+1, PL_strlen(comment));
|
||||
nsString *str = new nsAutoString(*bufDescr);
|
||||
return new TestResult(FAIL_value, *str);
|
||||
}
|
||||
|
||||
static TestResult* FAIL(char *comment) {
|
||||
CBufDescriptor *bufDescr = new CBufDescriptor(comment, PR_FALSE, PL_strlen(comment)+1, PL_strlen(comment));
|
||||
CBufDescriptor *bufDescr = new CBufDescriptor((const char*)comment, PR_FALSE, PL_strlen(comment)+1, PL_strlen(comment));
|
||||
nsString *str = new nsAutoString(*bufDescr);
|
||||
return new TestResult(FAIL_value, *str);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user