--- parser3/tests/347-curl.html 2016/08/03 20:33:56 1.1 +++ parser3/tests/347-curl.html 2024/12/13 13:28:36 1.5 @@ -1,7 +1,17 @@ -^curl:options[ $.library[no-such-library.so] ] -^try-catch{ ^curl:session{ } } -^try-catch{ ^curl:session{ } } -^curl:options[ $.library[another-library.so] ] -^try-catch{ ^curl:session{ } } -^curl:options[ $.library[libcurl.so] ] -^curl:session{ OK } +@main[] + +1. ^curl:options[ $.library[no-such-library.ext] ] +2. ^try-catch{ ^curl:session{ } } +3. ^try-catch{ ^curl:session{ } } +4. ^curl:options[ $.library[another-library.ext] ] +5. ^try-catch{ ^curl:session{ } } +6. ^curl:options[ $.library[] ] +7. ^try-catch{ ^curl:session{ OK } } + +@try-catch[jCode] +^try{$jCode}{ + $exception.handled(1) + Exception type: $exception.type, + Source: $exception.source, + Comment: ^exception.comment.match[(failed to load curl library).*(no-such-library.ext|another-library.ext).*][]{$match.1 ... $match.2 ...} +}