Project

Profile

Help

Revision 5d25f10d

Added by O'Neil Delpratt 5 months ago

Saxon/C development - XPath tests

View differences:

src/main/c/samples/cppTests/testXSLT30.cpp
644 644

  
645 645
    XdmValue *rootValue = executable->callTemplateReturningValue("go");
646 646
    if (rootValue== nullptr) {
647
        cout << "Result is null ====== FAIL ====== " << endl;
647
        if (executable->exceptionOccurred()) {
648
            SaxonApiException *exception = executable->getException();
649
            cerr << "Error: " << exception->getMessage() << endl;
650
            delete exception;
651
        }
648 652
        sresult->failure++;
649 653
        sresult->failureList.push_back("testXdmNodeOutput-0.0");
650 654
        return;
......
1361 1365

  
1362 1366

  
1363 1367
    if (value== nullptr) {
1364

  
1368
        if (executable->exceptionOccurred()) {
1369
            SaxonApiException *exception = executable->getException();
1370
            cerr << "Error: " << exception->getMessage() << endl;
1371
            delete exception;
1372
        }
1365 1373
        sresult->failure++;
1366 1374
        sresult->failureList.push_back("testResolveUri");
1367 1375
    } else {

Also available in: Unified diff