--- parser3/tests/347-curl.html 2016/09/26 20:45:35 1.3 +++ parser3/tests/347-curl.html 2024/12/13 13:28:36 1.5 @@ -1,10 +1,17 @@ @main[] -1. ^curl:options[ $.library[no-such-library.so] ] +1. ^curl:options[ $.library[no-such-library.ext] ] 2. ^try-catch{ ^curl:session{ } } 3. ^try-catch{ ^curl:session{ } } -4. ^curl:options[ $.library[another-library.so] ] +4. ^curl:options[ $.library[another-library.ext] ] 5. ^try-catch{ ^curl:session{ } } -6. ^curl:options[ $.library[libcurl.so] ] -7. ^curl:session{ OK } +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 ...} +}