Title: Failure on long lines in expectations · Issue #1397 · utPLSQL/utPLSQL · GitHub
Open Graph Title: Failure on long lines in expectations · Issue #1397 · utPLSQL/utPLSQL
X Title: Failure on long lines in expectations · Issue #1397 · utPLSQL/utPLSQL
Description: Describe the bug When the expectation text is long, the framework fails to process it correctly and there is a buffer overflow of 4000 chars that is causing the test to finish with an error instead of reporting a failure. Provide version...
Open Graph Description: Describe the bug When the expectation text is long, the framework fails to process it correctly and there is a buffer overflow of 4000 chars that is causing the test to finish with an error instead...
X Description: Describe the bug When the expectation text is long, the framework fails to process it correctly and there is a buffer overflow of 4000 chars that is causing the test to finish with an error instead...
Opengraph URL: https://github.com/utPLSQL/utPLSQL/issues/1397
X: @github
Domain: redirect.github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Failure on long lines in expectations","articleBody":"**Describe the bug**\n\nWhen the expectation text is long, the framework fails to process it correctly and there is a buffer overflow of 4000 chars that is causing the test to finish with an error instead of reporting a failure.\n\n\n**Provide version info**\nInformation about utPLSQL and Database version, \n\nutPLSQL v.3.2.3.4508\nDB: 19.20\nOS: x86_64/Linux 2.4.xx\n\n\n**To Reproduce**\n\n```sql\ncreate or replace package test_package1 is\n --%suite\n\n --%test\n procedure sp_test;\nend;\n/\n```\n```sql\ncreate or replace package body test_package1 is\n procedure sp_test is\n begin\n ut.expect(1, 'message').to_equal(2); /*3999 chars of comment *****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/\n end;\nend;\n/\n```\n\n\n```sql\nbegin\n ut.run('test_package1');\nend;\n```\n\nThis causes a test finishing with framework exception:\n```\ntest_package1\n sp_test [,005 sec] (FAILED - 1)\n\nFailures:\n\n 1) sp_test\n ORA-06502: PL/SQL: numeric or value error: character string buffer too small\n ORA-06512: at \"UT3.UT_EXPECTATION_PROCESSOR\", line 194\n ORA-06512: at \"UT3.UT_EXPECTATION_RESULT\", line 29\n ORA-06512: at \"UT3.UT_EXPECTATION_BASE\", line 30\n ORA-06512: at \"UT3.UT_EXPECTATION\", line 118\n ORA-06512: at \"PMUSER.TEST_PACKAGE1\", line 4\n ORA-06512: at \"UT3.UT_EXPECTATION_PROCESSOR\", line 194\n ORA-06512: at \"UT3.UT_EXPECTATION_RESULT\", line 29\n ORA-06512: at \"UT3.UT_EXPECTATION_BASE\", line 30\n ORA-06512: at \"UT3.UT_EXPECTATION\", line 118\n ORA-06512: at \"PMUSER.TEST_PACKAGE1\", line 4\n ORA-06512: at line 7\nFinished in ,0072 seconds\n1 tests, 0 failed, 1 errored, 0 disabled, 0 warning(s)\n```\n\n**Expected behavior**\nThe framework should handle correctly long lines in and around expectations.\nIt could for example show first 500 chars of the failing line to prevent the overflow.\n```\ntest_package1\n sp_test [,005 sec] (FAILED - 1)\n\nFailures:\n\n 1) sp_test\n \"message\"\n Actual: 1 (number) was expected to equal: 2 (number)\n at \"PMUSER.TEST_PACKAGE1.SP_TEST\", line 4 ut.expect(1, 'message').to_equal(2); /*3999 chars of comment *******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************\n\nFinished in ,007418 seconds\n1 tests, 1 failed, 0 errored, 0 disabled, 0 warning(s)\n\n```\n\n\n","author":{"url":"https://github.com/jgebal","@type":"Person","name":"jgebal"},"datePublished":"2026-11-19T10:22:22Z","url":"https://github.com/utPLSQL/utPLSQL/issues/1397"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:12ac1da6-92e6-0ace-cf2b-26ec7d437cfb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E724:188DB:B293A0:F430E1:6B048945 |
| html-safe-nonce | 694f309988f330e0ff6a3deaa0db2edf0fc75f747b57cbfb9d3d41ecc19e35f0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzI0OjE4OERCOkIyOTNBMDpGNDMwRTE6NkIwNDg5NDUiLCJ2aXNpdG9yX2lkIjoiNDI5OTg0NzM0MjcxNjM4OTcwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e916dccebe475d4e3c5719f1bb5d475a02c39886cfdea5c5e269959d36d54e95 |
| hovercard-subject-tag | issue:6487415919 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/utPLSQL/utPLSQL/1397/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a5d1a16dd8ed2d279527429056610347bf934a515ace65074f7fd04f1cd3a0ae/utPLSQL/utPLSQL/issues/1397 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a5d1a16dd8ed2d279527429056610347bf934a515ace65074f7fd04f1cd3a0ae/utPLSQL/utPLSQL/issues/1397 |
| og:image:alt | Describe the bug When the expectation text is long, the framework fails to process it correctly and there is a buffer overflow of 4000 chars that is causing the test to finish with an error instead... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jgebal |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1d5c152376e38b7d2e37f3d5179be29a73bee93b85110da28a4eebe1159cdc70 |
| turbo-cache-control | no-preview |
| go-import | github.com/utPLSQL/utPLSQL git https://github.com/utPLSQL/utPLSQL.git |
| octolytics-dimension-user_id | 15661281 |
| octolytics-dimension-user_login | utPLSQL |
| octolytics-dimension-repository_id | 50728220 |
| octolytics-dimension-repository_nwo | utPLSQL/utPLSQL |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 50728220 |
| octolytics-dimension-repository_network_root_nwo | utPLSQL/utPLSQL |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f5017e8ff4ea25a8011fcf0f2a0e430c60dc86c8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width