Skip to content

Conversation

@emkey1
Copy link
Owner

@emkey1 emkey1 commented Nov 6, 2025

Summary

  • track declared local slot types during compilation and store them on procedure symbols
  • initialize local frame slots with their declared ordinal/real types when pushing call frames
  • update the VM INC/DEC helpers to re-type uninitialized locals using the recorded metadata and extend symbol lifetime management accordingly

Testing

  • not run (graphics/SDL demos require unavailable environment)

https://chatgpt.com/codex/tasks/task_b_690cf2935d7483298eb116cd5f8b2ddb

@emkey1
Copy link
Owner Author

emkey1 commented Nov 6, 2025

@codex lots of breakage in regression tests. :( Please fix.
Test project /home/runner/work/pscal/pscal/build
Start 1: pascal_tests
1/4 Test #1: pascal_tests .....................*Failed 8.57 sec
[PASS] pascal_ext_builtin_dump – pascal --dump-ext-builtins validates structure
[PASS] pascal_cli_version – pascal -v reports latest tag
[PASS] pascal_cli_dump_ast_json – pascal --dump-ast-json emits JSON
[PASS] pascal_cli_vm_trace – pascal --vm-trace-head produces trace
[FAIL] pascal_compiler_suite – Pascal compiler regression suite
closure_capture_escape_error: Expected success but compiler exited with -6.
stderr:
[PASS] pascal_ApiSendReceiveTest – Pascal fixture ApiSendReceiveTest
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 5064 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ArgumentOrderMismatch – Pascal fixture ArgumentOrderMismatch
stderr mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ArgumentOrderMismatch.err 2025-11-06 19:34:20.891143242 +0000
+++ /tmp/tmp.rbpWehpAvN 2025-11-06 19:35:41.389590789 +0000
@@ -1,2 +0,0 @@
-L13: Compiler Error: argument 1 to 'mix' expects type INTEGER but got REAL.
-Compilation failed with errors.
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 5104 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ArgumentTypeMismatch – Pascal fixture ArgumentTypeMismatch
stderr mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ArgumentTypeMismatch.err 2025-11-06 19:34:20.891143242 +0000
+++ /tmp/tmp.lYrtLdRhkV 2025-11-06 19:35:41.499591138 +0000
@@ -1,2 +0,0 @@
-L13: Compiler Error: argument 1 to 'foo' expects type INTEGER but got STRING.
-Compilation failed with errors.
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 5146 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ArrayArgumentMismatch – Pascal fixture ArrayArgumentMismatch
stderr mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ArrayArgumentMismatch.err 2025-11-06 19:34:20.891143242 +0000
+++ /tmp/tmp.wbqZCISuhb 2025-11-06 19:35:41.603591467 +0000
@@ -1,2 +0,0 @@
-L12: Compiler Error: argument 1 to 'proc' expects an array but got INTEGER.
-Compilation failed with errors.
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 5187 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_BitwiseAndExprSuite – Pascal fixture BitwiseAndExprSuite
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/BitwiseAndExprSuite.out 2025-11-06 19:34:20.891143242 +0000
+++ /tmp/tmp.2zR50WeHFV 2025-11-06 19:35:41.701591778 +0000
@@ -1,28 +0,0 @@
-Running pscal Bitwise Shift and Expression Precedence Test Suite
-
---- Testing Simple SHL/SHR ---
-START: Simple 5 shl 1: PASS
-START: Simple 5 shl 3: PASS
-START: Simple 5 shl 10 (Shift out): PASS
-START: Simple 160 shr 1: PASS
-START: Simple 160 shr 4: PASS
-START: Simple 160 shr 8 (Shift out): PASS
-
---- Testing Mixed Precedence ---
-START: a shl 1 + b: PASS
-START: a + b shl 1: PASS
-START: a shl b - c: PASS
-START: a * b shl c: PASS
-START: a shl c * b: PASS
-START: a and b shl 1: PASS
-START: a shr 1 or b: PASS
-START: a or b shr 1: PASS
-START: (a + b) shl c: PASS
-START: a shl (b - c): PASS
-
---- Testing Boolean/Relational Precedence with Shifts ---
-START: a shl 1 > b: PASS
-START: a > b and b_a: PASS
-START: not b_b and (a shr 1 = b): PASS
-
-Bitwise Shift and Expression Precedence Test Suite Completed.
pscal run exited with 134
[PASS] pascal_BoolTest – Pascal fixture BoolTest
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 5265 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_BreakLoopTest – Pascal fixture BreakLoopTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/BreakLoopTest.out 2025-11-06 19:34:20.891143242 +0000
+++ /tmp/tmp.outS1DnOri 2025-11-06 19:35:41.853592259 +0000
@@ -1,15 +0,0 @@
-Testing FOR loop break...
- 1 2 3 4 5
-Breaking FOR loop at i = 5
-After FOR loop.
-
-Testing WHILE loop break...
- 1 2 3 4 5 6
-Breaking WHILE loop at i = 6
-After WHILE loop.
-
-Testing REPEAT loop break...
- 1 2 3 4 5 6 7
-Breaking REPEAT loop at i = 7
-After REPEAT loop.
-
pscal run exited with 134
[PASS] pascal_BuiltinCaseNormalization – Pascal fixture BuiltinCaseNormalization
[PASS] pascal_BuiltinProcCallTest – Pascal fixture BuiltinProcCallTest
[PASS] pascal_BytecodeVerificationTest – Pascal fixture BytecodeVerificationTest
[PASS] pascal_CRTRoutineParam – Pascal fixture CRTRoutineParam
[PASS] pascal_CaseStatementSuite – Pascal fixture CaseStatementSuite
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 5462 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_CommandLineParamTest – Pascal fixture CommandLineParamTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/CommandLineParamTest.out 2025-11-06 19:34:20.892143245 +0000
+++ /tmp/tmp.EZ0fb9rz74 2025-11-06 19:35:42.150593201 +0000
@@ -1,6 +0,0 @@
---- Command Line Parameter Test ---
-ParamCount reported: 0
-
-No command line parameters were provided (after the program name).
-
---- Test Complete ---
pscal run exited with 134
[PASS] pascal_CompileTimeBounds – Pascal fixture CompileTimeBounds
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 5535 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_CompoundAssignmentTest – Pascal fixture CompoundAssignmentTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/CompoundAssignmentTest.out 2025-11-06 19:34:20.892143245 +0000
+++ /tmp/tmp.M4fz6wwr9V 2025-11-06 19:35:42.349593831 +0000
@@ -1,9 +0,0 @@
-After first round:
-total=11
-aces=1
-After expression round:
-total=16
-aces=5
-After final subtraction:
-total=11
-aces=5
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 5581 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ConstArrayTest – Pascal fixture ConstArrayTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ConstArrayTest.out 2025-11-06 19:34:20.892143245 +0000
+++ /tmp/tmp.VSkf2VwyW6 2025-11-06 19:35:42.461594186 +0000
@@ -1,18 +0,0 @@
-Testing Typed Array Constants:
-------------------------------
-Simple Const TestStr: Simple
-
-Testing CardValues (String Array):
-CardValues[1] = A(A)
-CardValues[10] = 10(10)
-CardValues[13] = K(K)
-Assigned CardValues[11] to s: J
-
-Testing IntSequence (Integer Array):
-IntSequence[0] = 10(10)
-IntSequence[1] = -5(-5)
-IntSequence[4] = 42(42)
-Looping through IntSequence:
-10 -5 100 0 42
-
-Test complete.
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 5626 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_CreateThreadClosureCaptureTest – Pascal fixture CreateThreadClosureCaptureTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/CreateThreadClosureCaptureTest.out 2025-11-06 19:34:20.892143245 +0000
+++ /tmp/tmp.HhqlLxB7Zj 2025-11-06 19:35:42.561594503 +0000
@@ -1,3 +0,0 @@
-status=0
-observed=41
-stats=0
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 5672 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_CreateThreadClosurePointerTest – Pascal fixture CreateThreadClosurePointerTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/CreateThreadClosurePointerTest.out 2025-11-06 19:34:20.892143245 +0000
+++ /tmp/tmp.2xjjBEMtiq 2025-11-06 19:35:42.689594909 +0000
@@ -1,3 +0,0 @@
-status=0
-heap=42
-stats=0
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 5720 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_CreateThreadSmoke – Pascal fixture CreateThreadSmoke
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/CreateThreadSmoke.out 2025-11-06 19:34:20.892143245 +0000
+++ /tmp/tmp.p0ZFpNtFRg 2025-11-06 19:35:42.807595282 +0000
@@ -1 +0,0 @@
-worker
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 5767 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_CreateThreadWithArg – Pascal fixture CreateThreadWithArg
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/CreateThreadWithArg.out 2025-11-06 19:34:20.892143245 +0000
+++ /tmp/tmp.cH7qZX2Zo3 2025-11-06 19:35:42.934595685 +0000
@@ -1 +0,0 @@
-42
pscal run exited with 134
[PASS] pascal_DosUnitTest – Pascal fixture DosUnitTest
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 5849 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_DynamicArraySetLength – Pascal fixture DynamicArraySetLength
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/DynamicArraySetLength.out 2025-11-06 19:34:20.892143245 +0000
+++ /tmp/tmp.IG2WWhT5Z7 2025-11-06 19:35:43.090596179 +0000
@@ -1 +0,0 @@
-PASS: Dynamic array SetLength preserves contents and defaults
pscal run exited with 134
[PASS] pascal_EnumComparisonTest – Pascal fixture EnumComparisonTest
[PASS] pascal_EnumForLoop – Pascal fixture EnumForLoop
[PASS] pascal_EofDefaultInput – Pascal fixture EofDefaultInput
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 5979 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ExitEarlyTest – Pascal fixture ExitEarlyTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ExitEarlyTest.out 2025-11-06 19:34:20.892143245 +0000
+++ /tmp/tmp.DjgMB9UsuY 2025-11-06 19:35:43.294596826 +0000
@@ -1,3 +0,0 @@
-Start
-Inside Foo
-After Foo
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 6025 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ExitFunctionReturnTest – Pascal fixture ExitFunctionReturnTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ExitFunctionReturnTest.out 2025-11-06 19:34:20.892143245 +0000
+++ /tmp/tmp.ake5N438GR 2025-11-06 19:35:43.397597152 +0000
@@ -1 +0,0 @@
-ok
pscal run exited with 134
[PASS] pascal_ExtBuiltinEnumerationTest – Pascal fixture ExtBuiltinEnumerationTest
[PASS] pascal_ExtBuiltinQueryTest – Pascal fixture ExtBuiltinQueryTest
[PASS] pascal_ExtendedBuiltinsTest – Pascal fixture ExtendedBuiltinsTest
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 6157 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_FileIOEdgeTests – Pascal fixture FileIOEdgeTests
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/FileIOEdgeTests.out 2025-11-06 19:34:20.892143245 +0000
+++ /tmp/tmp.4JT5S8sk8P 2025-11-06 19:35:43.612597834 +0000
@@ -1,10 +0,0 @@
---- Starting File I/O Edge Tests ---
-Test: Setup: create edge_input.txt ... PASS
-Test: Reset edge_input.txt ... PASS
-Test: Empty line -> s="" ... PASS
-Test: Mixed types parse (i=99, r~3.14, c=Z, s="hello there") ... PASS
-Test: Token split without space (i=42, s="abc") ... PASS
-Test: Spaces-only line triggers IOResult<>0 ... PASS
-Test: Single char line -> c=Z ... PASS
-Test: Close edge_input.txt ... PASS
---- Edge Tests Complete ---
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 6203 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_FileOfRecordRoundTrip – Pascal fixture FileOfRecordRoundTrip
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/FileOfRecordRoundTrip.out 2025-11-06 19:34:20.892143245 +0000
+++ /tmp/tmp.TXsi0X5Ivh 2025-11-06 19:35:43.723598185 +0000
@@ -1,4 +0,0 @@
-START: First name: PASS
-START: First age: PASS
-START: Second name: PASS
-START: Second age: PASS
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 6248 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_FormattingTestSuite – Pascal fixture FormattingTestSuite
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/FormattingTestSuite.out 2025-11-06 19:34:20.892143245 +0000
+++ /tmp/tmp.zDvyAXgaVN 2025-11-06 19:35:43.822598499 +0000
@@ -1,31 +0,0 @@
-Running pscal Formatting Test Suite
-===================================
-(Check output visually against comments in source code)
-
---- Testing Integer Formatting (:width) ---
-Positive Integer Tests:
-Val=123< :5 > 123< :3 >123< :1 >123<
-Negative Integer Tests:
-Val=-45< :5 > -45< :3 >-45< :1 >-45<
-Zero Integer Tests:
-Val=0< :5 > 0< :1 >0<
-
---- Testing Real Formatting (:width, :width:decimals) ---
-Positive Real Tests:
-Val=123.4567< :10:2 > 123.46< :7:1 > 123.5< :5:0 > 123< :10 >1.234567E+02<
-Negative Real Tests:
-Val=-98.76< :8:1 > -98.8< :5:0 > -99< :12 >-9.876000E+01<
-Zero Real Tests:
-Val=0.0< :8:2 > 0.00< :5 >0.000000E+00<
-
---- Testing String Formatting (:width) ---
-Short String Tests:
-Val=Hi< :5 > Hi< :2 >Hi< :1 >H<
-Longer String Tests:
-Val=Pascal< :10 > Pascal< :6 >Pascal< :4 >Pasc<
-
---- Testing Other Types (Behavior May Vary) ---
-Char=X< :5 > X<
-Bool=TRUE< :8 > TRUE< :8 > FALSE<
-
-Formatting Test Suite Completed.
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 6294 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_FuncPtrIndirectCall – Pascal fixture FuncPtrIndirectCall
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/FuncPtrIndirectCall.out 2025-11-06 19:34:20.892143245 +0000
+++ /tmp/tmp.vUzelyDY5K 2025-11-06 19:35:43.935598857 +0000
@@ -1 +0,0 @@
-42
pscal run exited with 134
[SKIP] pascal_GetScreenSizeTest – Pascal fixture GetScreenSizeTest
Graphics builtins unavailable
[PASS] pascal_HttpAsyncFileURL – Pascal fixture HttpAsyncFileURL
[PASS] pascal_HttpFetchDataURL – Pascal fixture HttpFetchDataURL
[PASS] pascal_HttpHeadersFileURL – Pascal fixture HttpHeadersFileURL
[PASS] pascal_HttpRequestToFileFileURL – Pascal fixture HttpRequestToFileFileURL
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 6465 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_IfdefExtendedTest – Pascal fixture IfdefExtendedTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/IfdefExtendedTest.out 2025-11-06 19:34:20.893143249 +0000
+++ /tmp/tmp.U0WoxmlTsd 2025-11-06 19:35:44.190599665 +0000
@@ -1 +0,0 @@
-1 2 1 0
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 6509 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_InterfaceAssertionFailure – Pascal fixture InterfaceAssertionFailure
stderr mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/InterfaceAssertionFailure.err 2025-11-06 19:34:20.893143249 +0000
+++ /tmp/tmp.hqGFSE1LcY 2025-11-06 19:35:44.312600052 +0000
@@ -1,3 +0,0 @@
-VM Error: Interface assertion expected 'tfilegreeter' but receiver is 'tconsolegreeter'.
-[Error Location] Offset: 82, Line: 33
-
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 6549 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_InterfaceAssertionSuccess – Pascal fixture InterfaceAssertionSuccess
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/InterfaceAssertionSuccess.out 2025-11-06 19:34:20.893143249 +0000
+++ /tmp/tmp.b1pVfdUXQD 2025-11-06 19:35:44.407600353 +0000
@@ -1,3 +0,0 @@
-as ok
-is ok
-greet: through interface
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 6595 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_InterfaceCastMissingMethod – Pascal fixture InterfaceCastMissingMethod
stderr mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/InterfaceCastMissingMethod.err 2025-11-06 19:34:20.893143249 +0000
+++ /tmp/tmp.AityhtZuGh 2025-11-06 19:35:44.529600740 +0000
@@ -1,2 +0,0 @@
-L21: Compiler Error: Record 'tincompletewidget' is missing virtual method 'dowork' required by interface 'iwidget'.
-Compilation failed with errors.
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 6638 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_InterfaceCastParamMismatch – Pascal fixture InterfaceCastParamMismatch
stderr mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/InterfaceCastParamMismatch.err 2025-11-06 19:34:20.893143249 +0000
+++ /tmp/tmp.rlIvsw22vT 2025-11-06 19:35:44.633601069 +0000
@@ -1,2 +0,0 @@
-L22: Compiler Error: Method 'add' on record 'tbadadder' must take 2 parameter(s) to satisfy interface 'iadder' (found 1).
-Compilation failed with errors.
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 6680 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_InterfaceCastValidation – Pascal fixture InterfaceCastValidation
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/InterfaceCastValidation.out 2025-11-06 19:34:20.893143249 +0000
+++ /tmp/tmp.966I6hAQGY 2025-11-06 19:35:44.746601427 +0000
@@ -1,3 +0,0 @@
-greeter says: hello world
-sum: 5
-mixed: 4, 5
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 6730 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_InterfaceDispatch – Pascal fixture InterfaceDispatch
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/InterfaceDispatch.out 2025-11-06 19:34:20.893143249 +0000
+++ /tmp/tmp.L6leD80GZF 2025-11-06 19:35:44.859601785 +0000
@@ -1,17 +0,0 @@
-Priming console logger
-[console] system boot
-Priming buffered logger
-Broadcasting "server ready" to 2 logger(s)
- using console logger
-[console] server ready
- using buffered logger
-[buffer] flushing 4 message(s)
-[buffer] system boot
-[buffer] server ready
-[buffer] queued event #1
-[buffer] queued event #2
-[buffer] flushing 1 message(s)
-[buffer] queued event #3
-[console] final console message
-[console] --- flush complete ---
-[buffer] (buffer empty)
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 6775 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_InterfaceNilComparisonTest – Pascal fixture InterfaceNilComparisonTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/InterfaceNilComparisonTest.out 2025-11-06 19:34:20.893143249 +0000
+++ /tmp/tmp.oDmH6SFeEA 2025-11-06 19:35:44.974602150 +0000
@@ -1,6 +0,0 @@
-initial eq nil ok
-initial ne nil ok
-assigned ne nil ok
-assigned eq nil ok
-reset eq nil ok
-reset ne nil ok
pscal run exited with 134
[PASS] pascal_InvalidArrayBounds – Pascal fixture InvalidArrayBounds
[PASS] pascal_LowHighCharTest – Pascal fixture LowHighCharTest
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 6878 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_LowHighDynamicArrayTest – Pascal fixture LowHighDynamicArrayTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/LowHighDynamicArrayTest.out 2025-11-06 19:34:20.893143249 +0000
+++ /tmp/tmp.v0VbJaZRqZ 2025-11-06 19:35:45.154602720 +0000
@@ -1,14 +0,0 @@
-START: cards initial Low: PASS
-START: cards initial High: PASS
-START: alias initial Low: PASS
-START: alias initial High: PASS
-START: cards Append Low: PASS
-START: cards Append High: PASS
-START: alias Append Low: PASS
-START: alias Append High: PASS
-START: cards shrink Low: PASS
-START: cards shrink High: PASS
-START: cards after shrink Append Low: PASS
-START: cards after shrink Append High: PASS
-START: alias cleared Low: PASS
-START: alias cleared High: PASS
pscal run exited with 134
[PASS] pascal_MalformedUses – Pascal fixture MalformedUses
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 6952 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_MathLibTest – Pascal fixture MathLibTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/MathLibTest.out 2025-11-06 19:34:20.893143249 +0000
+++ /tmp/tmp.FbHzjBHxhS 2025-11-06 19:35:45.295603167 +0000
@@ -1,18 +0,0 @@
-Running MathLib tests
-
---- Testing MathLib ---
-START: arctan(1): PASS
-START: arcsin(0.5): PASS
-START: arccos(0.5): PASS
-START: cotan(pi/4): PASS
-START: power(2,3): PASS
-START: log10(1000): PASS
-START: sinh(0): PASS
-START: cosh(0): PASS
-START: tanh(0): PASS
-START: max(2,1): PASS
-START: min(2,1): PASS
-START: floor(3.7): PASS
-START: ceil(3.1): PASS
-
-MathLib tests completed.
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 6999 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_MathSuite01 – Pascal fixture MathSuite01
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/MathSuite01.out 2025-11-06 19:34:20.893143249 +0000
+++ /tmp/tmp.1D0LiduLXD 2025-11-06 19:35:45.395603528 +0000
@@ -1,80 +0,0 @@
-Running pscal Math Torture Test
-
---- Testing Integer Arithmetic ---
-START: Int Add (10 + 3): PASS
-START: Int Subtract (10 - 3): PASS
-START: Int Multiply (10 * 3): PASS
-START: Int Div (10 div 3): PASS
-START: Int Mod (10 mod 3): PASS
-START: Int Add Negative (10 + -5): PASS
-START: Int Subtract Negative (10 - -5): PASS
-START: Int Multiply Negative (10 * -5): PASS
-START: Int Div Negative (10 div -5): PASS
-START: Int Mod Negative (10 mod -5): PASS
-START: Int Neg Subtract Pos (-5 - 3): PASS
-START: Int Neg Multiply Pos (-5 * 3): PASS
-START: Int Neg Div Pos (-5 div 3): PASS
-START: Int Neg Mod Pos (-5 mod 3): PASS
-
---- Testing Real Arithmetic ---
-START: Real Add (10.5 + 2.0): PASS
-START: Real Subtract (10.5 - 2.0): PASS
-START: Real Multiply (10.5 * 2.0): PASS
-START: Real Divide (10.5 / 2.0): PASS
-START: Real Add Negative (10.5 + -4.25): PASS
-START: Real Subtract Negative (10.5 - -4.25): PASS
-START: Real Multiply Negative (10.5 * -4.25): PASS
-START: Real Divide Negative (10.5 / -4.25): PASS
-START: Real Neg Subtract Pos (-4.25 - 2.0): PASS
-START: Real Neg Multiply Pos (-4.25 * 2.0): PASS
-START: Real Neg Divide Pos (-4.25 / 2.0): PASS
-
---- Testing Mixed Integer/Real Arithmetic ---
-START: Mixed Add (int + real): PASS
-START: Mixed Add (real + int): PASS
-START: Mixed Subtract (int - real): PASS
-START: Mixed Subtract (real - int): PASS
-START: Mixed Multiply (int * real): PASS
-START: Mixed Multiply (real * int): PASS
-START: Mixed Divide / (int / real): PASS
-START: Mixed Divide / (real / int): PASS
-
---- Testing Operator Precedence ---
-START: Precedence (2 + 3 * 4): PASS
-START: Precedence ((2 + 3) * 4): PASS
-START: Precedence (4
2 + 3 - 2): PASS
-START: Precedence (10.0 / 2.0 * 5.0): PASS
-START: Precedence (10.0 / (2.0 * 5.0)): PASS
-START: Precedence (10+5 - 2
1.5): PASS
-
---- Testing Built-in Math Functions ---
-START: Abs (int -5): PASS
-START: Abs (int 5): PASS
-START: Abs (real -3.14): PASS
-START: Abs (real 3.14): PASS
-START: Abs (real 0.0): PASS
-START: Sqrt (int 4): PASS
-START: Sqrt (real 2.0): PASS
-START: Sqrt (real 0.0): PASS
-START: Trunc (3.7): PASS
-START: Trunc (-3.7): PASS
-START: Trunc (5.0): PASS
-START: Trunc (0.1): PASS
-START: Trunc (-0.1): PASS
-START: Exp (0.0): PASS
-START: Exp (1.0): PASS
-START: Exp (-1.0): PASS
-START: Exp (int 2): PASS
-START: Ln (1.0): PASS
-START: Ln (exp(1.0)): PASS
-START: Ln (10.0): PASS
-START: Cos (0.0): PASS
-START: Cos (pi): PASS
-START: Cos (pi/2): PASS
-START: Sin (0.0): PASS
-START: Sin (pi): PASS
-START: Sin (pi/2): PASS
-START: Tan (0.0): PASS
-START: Tan (pi/4): PASS
-
-Math Torture Test Completed.
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 7043 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_MultiDimArrayTest – Pascal fixture MultiDimArrayTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/MultiDimArrayTest.out 2025-11-06 19:34:20.893143249 +0000
+++ /tmp/tmp.T78o27Anjj 2025-11-06 19:35:45.505603935 +0000
@@ -1,27 +0,0 @@
-Running pscal Multi-Dimensional Array Torture Test
-
---- Testing 2D Array (Matrix) ---
-Assigning values to matrix_a[1..3, 0..2]...
-Assignment complete.
-START: 2D Array Checksum after assignment: PASS
-START: 2D Array Checksum after assignment: PASS
-Verifying individual elements...
-START: 2D Access matrix_a[1, 0]: PASS
-START: 2D Access matrix_a[1, 2] (Edge): PASS
-START: 2D Access matrix_a[2, 1]: PASS
-START: 2D Access matrix_a[3, 0] (Edge): PASS
-START: 2D Access matrix_a[3, 2] (Corner): PASS
-START: 2D Modify/Access matrix_a[2, 1]: PASS
-
---- Testing 3D Array (Cube) ---
-Assigning values to cube_a[-1..0, 1..2, 3..4]...
-Assignment complete.
-START: 3D Array Checksum after assignment: PASS
-Verifying individual elements...
-START: 3D Access cube_a[-1, 1, 3] (Corner): PASS
-START: 3D Access cube_a[-1, 2, 4] (Edge): PASS
-START: 3D Access cube_a[0, 1, 3] (Edge): PASS
-START: 3D Access cube_a[0, 2, 4] (Corner): PASS
-START: 3D Modify/Access cube_a[0, 1, 3]: PASS
-
-Multi-Dimensional Array Torture Test Completed.
pscal run exited with 134
[PASS] pascal_MutexReuseTest – Pascal fixture MutexReuseTest
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 7121 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_NestedRoutineAccessTest – Pascal fixture NestedRoutineAccessTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/NestedRoutineAccessTest.out 2025-11-06 19:34:20.893143249 +0000
+++ /tmp/tmp.3kg5ChJEFx 2025-11-06 19:35:45.657604497 +0000
@@ -1,3 +0,0 @@
-PASS: Nested routines can access outer vars
-currentline=2
-outtext=changed
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 7168 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_NestedRoutineSuite – Pascal fixture NestedRoutineSuite
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/NestedRoutineSuite.out 2025-11-06 19:34:20.893143249 +0000
+++ /tmp/tmp.EkdwvHJ87g 2025-11-06 19:35:45.759604874 +0000
@@ -1,5 +0,0 @@
-InnerFunc=9
-currentline=2
-outtext=changed
-CharAt(2)=h
-g=7
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 7213 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_NestedVarArray – Pascal fixture NestedVarArray
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/NestedVarArray.out 2025-11-06 19:34:20.894143254 +0000
+++ /tmp/tmp.0AIoxIDQyB 2025-11-06 19:35:45.884605336 +0000
@@ -1 +0,0 @@
-PASS: VAR array accessed through multiple nested procedures
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 7260 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_OpenArrayBaseTypeMismatch – Pascal fixture OpenArrayBaseTypeMismatch
stderr mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/OpenArrayBaseTypeMismatch.err 2025-11-06 19:34:20.894143254 +0000
+++ /tmp/tmp.r3I615ihoY 2025-11-06 19:35:46.007605791 +0000
@@ -1,2 +0,0 @@
-L10: Compiler Error: argument 1 to 'proc' expects type ARRAY OF INTEGER but got ARRAY OF REAL.
-Compilation failed with errors.
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 7301 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_OpenArrayParam – Pascal fixture OpenArrayParam
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 7344 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_OutContextualKeywordTest – Pascal fixture OutContextualKeywordTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/OutContextualKeywordTest.out 2025-11-06 19:34:20.894143254 +0000
+++ /tmp/tmp.qpRTBHxlgw 2025-11-06 19:35:46.211606545 +0000
@@ -1,3 +0,0 @@
-after Increment: outValue=42
-global out identifier=3
-local out identifier=10
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 7390 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_PointerTortureTest – Pascal fixture PointerTortureTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/PointerTortureTest.out 2025-11-06 19:34:20.894143254 +0000
+++ /tmp/tmp.9fi7TOeM0l 2025-11-06 19:35:46.328606978 +0000
@@ -1,64 +0,0 @@
-Running pscal Pointer Torture Test
-
---- Testing Integer Pointers ---
-1. Initialization and Nil Checks...
-START: intPtr1 initialized to nil: PASS
-START: intPtr2 initialized to nil: PASS
-START: intPtr1 = intPtrNil (nil comparison): PASS
-START: intPtr1 <> nil (should be false): PASS
-2. Allocation with new()...
-START: intPtr1 is not nil after new(): PASS
-3. Assignment via Dereference...
-START: Assign and read intPtr1^: PASS
-4. Pointer Assignment (Aliasing)...
-START: intPtr2 is not nil after assignment: PASS
-START: intPtr1 = intPtr2 (same address): PASS
-START: Read intPtr2^ after aliasing: PASS
-5. Modifying through alias...
-START: Read intPtr2^ after modification: PASS
-START: Read intPtr1^ after modification via intPtr2: PASS
-START: Read intPtr1^ after modification: PASS
-START: Read intPtr2^ after modification via intPtr1: PASS
-6. Disposal...
-START: intPtr1 is nil after dispose(intPtr1): PASS
-7. Disposing nil pointer...
-START: intPtrNil is nil before dispose: PASS
-START: intPtrNil is still nil after dispose(nil): PASS
-8. Disposing already disposed memory (via alias)...
- Skipping dispose(intPtr2) because it was already nil (implies dispose(p1) affects aliases).
-9. Re-allocating disposed pointer...
-START: intPtr1 is not nil after re-allocation: PASS
-START: Assign/read after re-allocation: PASS
-START: intPtr1 is nil after final dispose: PASS
-
---- Testing String Pointers ---
-START: strPtr1 initialized to nil: PASS
-START: strPtr1 not nil after new(): PASS
-START: strPtr1^ initial value: PASS
-START: Assign/read strPtr1^: PASS
-START: Read strPtr1^ after modification via strPtr2: PASS
-START: strPtr1 is nil after dispose: PASS
-
---- Testing Record Pointers ---
-START: recPtrA initialized to nil: PASS
-START: recPtrA = recPtrNil: PASS
-2. Allocation...
-START: recPtrA not nil after new(): PASS
-START: Initial recPtrA^.id: PASS
-START: Initial recPtrA^.label: PASS
-START: Initial recPtrA^.value: PASS
-3. Assigning field values...
-START: Read recPtrA^.id after assignment: PASS
-START: Read recPtrA^.label after assignment: PASS
-START: Read recPtrA^.value after assignment: PASS
-4. Pointer Assignment (Aliasing)...
-START: recPtrA = recPtrB: PASS
-START: Read recPtrB^.id via alias: PASS
-5. Modifying via alias...
-START: Read recPtrA^.id after modification via B: PASS
-START: Read recPtrA^.label after modification via B: PASS
-6. Disposal...
-START: recPtrA is nil after dispose: PASS
-START: recPtrNil is still nil after dispose(nil): PASS
-
-Pointer Torture Test Completed.
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 7438 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_PrimitiveArgCall – Pascal fixture PrimitiveArgCall
pscal run exited with 134
[PASS] pascal_PrintfFloatLenPascal – Pascal fixture PrintfFloatLenPascal
[PASS] pascal_PrintfIntLenPascal – Pascal fixture PrintfIntLenPascal
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 7538 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ProcPtrAssign – Pascal fixture ProcPtrAssign
pscal run exited with 134
[PASS] pascal_ProcPtrAssignMismatch – Pascal fixture ProcPtrAssignMismatch
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 7606 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ProcPtrIndirectCall – Pascal fixture ProcPtrIndirectCall
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ProcPtrIndirectCall.out 2025-11-06 19:34:20.894143254 +0000
+++ /tmp/tmp.YKBPIlXpbF 2025-11-06 19:35:46.750608538 +0000
@@ -1 +0,0 @@
-ok
pscal run exited with 134
[PASS] pascal_ProcPtrParamBad – Pascal fixture ProcPtrParamBad
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 7679 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ProcPtrParamOK – Pascal fixture ProcPtrParamOK
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 7721 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ProcPtrParamSemicolon – Pascal fixture ProcPtrParamSemicolon
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 7761 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ProcPtrReturnClosureTest – Pascal fixture ProcPtrReturnClosureTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ProcPtrReturnClosureTest.out 2025-11-06 19:34:20.894143254 +0000
+++ /tmp/tmp.CcLBdr85A4 2025-11-06 19:35:47.113609880 +0000
@@ -1,5 +0,0 @@
-A->1
-A->2
-B->8
-A->3
-B->6
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 7807 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ProcVarLocalScope – Pascal fixture ProcVarLocalScope
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ProcVarLocalScope.out 2025-11-06 19:34:20.894143254 +0000
+++ /tmp/tmp.qggjWvnQUI 2025-11-06 19:35:47.237610339 +0000
@@ -1,3 +0,0 @@
-inc 2
-inc 3
-eval=12
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 7855 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ProcedureResultParam – Pascal fixture ProcedureResultParam
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ProcedureResultParam.out 2025-11-06 19:34:20.894143254 +0000
+++ /tmp/tmp.lB8EJAeXs5 2025-11-06 19:35:47.353610767 +0000
@@ -1 +0,0 @@
-result=14
pscal run exited with 134
[PASS] pascal_ProgramFileList – Pascal fixture ProgramFileList
[PASS] pascal_ReadlnString – Pascal fixture ReadlnString
[PASS] pascal_RealExponentTest – Pascal fixture RealExponentTest
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 7987 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_RealIntConversionTest – Pascal fixture RealIntConversionTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/RealIntConversionTest.out 2025-11-06 19:34:20.894143254 +0000
+++ /tmp/tmp.SNXsGCbciZ 2025-11-06 19:35:47.571611573 +0000
@@ -1,5 +0,0 @@
-5.0
-7.0
-10.0
-2.0
-7.0
pscal run exited with 134
[PASS] pascal_RealIntOverflowTest – Pascal fixture RealIntOverflowTest
[PASS] pascal_RealTimeClockExtBuiltinTest – Pascal fixture RealTimeClockExtBuiltinTest
[PASS] pascal_RecordFieldIndexTest – Pascal fixture RecordFieldIndexTest
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 8120 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_RecordMethodDispatch – Pascal fixture RecordMethodDispatch
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/RecordMethodDispatch.out 2025-11-06 19:34:20.894143254 +0000
+++ /tmp/tmp.9vY8T3zD1G 2025-11-06 19:35:47.783612357 +0000
@@ -1 +0,0 @@
-ready
pscal run exited with 134
[PASS] pascal_RecordsArray – Pascal fixture RecordsArray
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 8192 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_RecursiveMutexTest – Pascal fixture RecursiveMutexTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/RecursiveMutexTest.out 2025-11-06 19:34:20.895143258 +0000
+++ /tmp/tmp.ECctd5Y2XT 2025-11-06 19:35:47.922612871 +0000
@@ -1,2 +0,0 @@
-inside
-done
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 8239 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ReverseStringTest – Pascal fixture ReverseStringTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ReverseStringTest.out 2025-11-06 19:34:20.895143258 +0000
+++ /tmp/tmp.V1qyS6eUnL 2025-11-06 19:35:48.036613293 +0000
@@ -1 +0,0 @@
-lacsp
pscal run exited with 134
[SKIP] pascal_SDLFeaturesTest – Pascal fixture SDLFeaturesTest
Graphics builtins unavailable
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 264: 8291 Aborted (core dumped) ( cd "$SCRIPT_DIR" && "$PASCAL_BIN" "${PASCAL_ARGS[@]}" --dump-bytecode-only "Pascal/$test_name" ) > /dev/null 2> "$disasm_stderr"
[FAIL] pascal_ShortCircuitTest – Pascal fixture ShortCircuitTest
Disassembly exited with status 134
Disassembly stderr:\n--- Compiling Main Program AST to Bytecode ---
double free or corruption (out)
[SKIP] pascal_SocketSendReceiveTest – Pascal fixture SocketSendReceiveTest
Network tests disabled (set RUN_NET_TESTS=1)
[PASS] pascal_SqliteSmokeTest – Pascal fixture SqliteSmokeTest
[PASS] pascal_StrBuiltinTest – Pascal fixture StrBuiltinTest
[PASS] pascal_StringTruncationTest – Pascal fixture StringTruncationTest
[PASS] pascal_SuccEnumTest – Pascal fixture SuccEnumTest
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 8446 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_SwapArrayElements – Pascal fixture SwapArrayElements
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 8485 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_TestFileOperations – Pascal fixture TestFileOperations
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/TestFileOperations.out 2025-11-06 19:34:20.895143258 +0000
+++ /tmp/tmp.rFkUhAOia5 2025-11-06 19:35:48.490614971 +0000
@@ -1,22 +0,0 @@
-Running pscal File I/O Test Suite...
---- Testing Basic File Read/Write ---
-START: IOResult after successful rewrite: PASS
-START: IOResult after successful writeln: PASS
-START: IOResult after successful close: PASS
---- Testing File Read ---
-START: IOResult after successful reset: PASS
-START: IOResult after successful readln 1: PASS
-START: File Read Test (Line 1): PASS
-START: IOResult after successful readln 2: PASS
-START: File Read Test (Line 2): PASS
-START: IOResult after successful close (read): PASS
---- Testing Append ---
-START: IOResult after successful append: PASS
-START: Append writes at end: PASS
---- Testing Rename and Erase ---
-START: IOResult after successful rename: PASS
-START: IOResult after successful erase: PASS
---- Testing IOResult on Error ---
-START: IOResult Error Test: PASS
----
-File I/O Tests Completed.
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 8530 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_TestIncDecWithVerify – Pascal fixture TestIncDecWithVerify
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/TestIncDecWithVerify.out 2025-11-06 19:34:20.895143258 +0000
+++ /tmp/tmp.Q1wePqI1pW 2025-11-06 19:35:48.608615407 +0000
@@ -1,28 +0,0 @@
---- Testing Inc/Dec with Verification ---
-
-Testing Simple Variable (myVar)...
-Initial myVar: 10
-START: Simple Inc(myVar): PASS
-START: Simple Dec(myVar)*2: PASS
-START: Simple Inc(myVar, 5): PASS
-START: Simple Dec(myVar, 3): PASS
-
-Testing Record Field (myRecord.count)...
-Initial myRecord.count: 50
-START: Record Inc(myRecord.count): PASS
-START: Record Dec(myRecord.count)*2: PASS
-START: Record Inc(myRecord.count, 10): PASS
-START: Record Dec(myRecord.count, 4): PASS
-
-Testing Array Element (myArray[2])...
-Initial myArray[2]: 200
-START: Array Inc(myArray[2]): PASS
-START: Array Dec(myArray[2])*2: PASS
-START: Array Inc(myArray[2], 20): PASS
-START: Array Dec(myArray[2], 9): PASS
-
-Verifying other array elements...
-START: Array Unchanged myArray[1]: PASS
-START: Array Unchanged myArray[3]: PASS
-
---- Test Complete ---
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 8577 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_TestSuite7 – Pascal fixture TestSuite7
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/TestSuite7.out 2025-11-06 19:34:20.895143258 +0000
+++ /tmp/tmp.fjWSqseAwc 2025-11-06 19:35:48.706615770 +0000
@@ -1,43 +0,0 @@
-Running pscal Test Suite
-START: Addition Test: PASS
-START: Subtraction Test: PASS
-START: Multiplication Test: PASS
-START: Integer Division Test: PASS
-START: Operator Precedence Test: PASS
-START: For Loop Test: PASS
-START: While Loop Test: PASS
-START: Repeat Loop Test: PASS
-START: For Downto Test: PASS
-START: String Assignment Test: PASS
-START: String Concatenation Test: PASS
-START: Upcase Test: PASS
-START: Record Field (id) Test: PASS
-START: Record Field (name) Test: PASS
-START: Array Access Test: PASS
-START: Pass by Reference Test: PASS
-START: Function Test: PASS
-START: Boolean AND Test: PASS
-START: Boolean OR Test: PASS
-START: Boolean NOT Test: PASS
-START: Case Statement Test: PASS
-START: File I/O Test: PASS
-START: Write/Read Roundtrip: PASS
-START: Writeln/Readln Roundtrip: PASS
-START: Cosine of 0: PASS
-START: Sine of 0: PASS
-START: Tangent of 0: PASS
-START: Square Root of 4: PASS
-START: Ln(exp(1)): PASS
-START: Exp(1): PASS
-START: Abs(-5.5): PASS
-START: Trunc(3.7): PASS
-START: Trunc(-3.7): PASS
-START: Copy Function Test: PASS
-START: Pos Function Test: PASS
-START: Length Function Test: PASS
-START: Inc Function Test: PASS
-START: Upcase Function Test: PASS
-START: File I/O Builtins Test: PASS
-START: IOResult Test: PASS
-START: RecordPassing Test: PASS
-Test Suite Completed
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 8623 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_TestVarParam – Pascal fixture TestVarParam
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/TestVarParam.out 2025-11-06 19:34:20.895143258 +0000
+++ /tmp/tmp.tkkpFvvoId 2025-11-06 19:35:48.842616273 +0000
@@ -1,15 +0,0 @@
-Before calling Increase: x = 10
-Inside Increase: n = 10, delta = 5
-Inside Increase after modification: n = 15
-After calling Increase: x = 15
-
-Before calling Test: x = 15, y = 20
-Inside Test: inVal = 15, refVal = 20
-Inside Test after modifying refVal: refVal = 40
-After calling Test: x = 15, y = 40
-
-Before calling Double: x = 15
-Inside Double: n = 15
-Inside Double after modification: n = 30
-Result of Double: 30
-After calling Double: x = 30
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 8673 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ThreadMutexTest – Pascal fixture ThreadMutexTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ThreadMutexTest.out 2025-11-06 19:34:20.895143258 +0000
+++ /tmp/tmp.cru7qklNkm 2025-11-06 19:35:48.952616680 +0000
@@ -1 +0,0 @@
-200
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 8718 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ThreadSpawnJoinTest – Pascal fixture ThreadSpawnJoinTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ThreadSpawnJoinTest.out 2025-11-06 19:34:20.895143258 +0000
+++ /tmp/tmp.uNFVU5K0zJ 2025-11-06 19:35:49.072617123 +0000
@@ -1,3 +0,0 @@
-before spawn
-worker running
-after join
pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341: 8767 Aborted (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ThreadSpawnNestedCaptureTest – Pascal fixture ThreadSpawnNestedCaptureTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ThreadSpawnNestedCaptureTest.out 2025-11-06 19:34:20.895143258 +0000
+++ /tmp/tmp.btAAKbMykp 2025-11-06 19:35:49.182617530 +0000
@@ -1 +0,0 @@
-captured=42
pscal run exited with 134
[FAIL] pascal_TrimLeftRightTest – Pascal fixture TrimLeftRightTest
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/TrimLeftRightTest.out 2025-11-06 19:34:20.895143258 +0000
+++ /tmp/tmp.o7JbYfVu4F 2025-11-06 19:35:49.240617744 +0000
@@ -1,2 +1 @@
->hello world <
-> hello world<
+122
pscal run exited with 1
stderr:\nRuntime Error: Operands for 'int_div' must be integers. Got STRING and INTEGER.
[Error Location] Offset: 351, Line: 101
[PASS] pascal_TypeTestSuite – Pascal fixture TypeTestSuite
[PASS] pascal_UpperCaseTest – Pascal fixture UpperCaseTest
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 264: 8911 Aborted (core dumped) ( cd "$SCRIPT_DIR" && "$PASCAL_BIN" "${PASCAL_ARGS[@]}" --dump-bytecode-only "Pascal/$test_name" ) > /dev/null 2> "$disasm_stderr"
[FAIL] pascal_UserProcCallTest – Pascal fixture UserProcCallTest
Disassembly exited with status 134
Disassembly stderr:\n--- Compiling Main Program AST to Bytecode ---
double free or corruption (out)
[PASS] pascal_VMVersionQueryTest – Pascal fixture VMVersionQueryTest
[PASS] pascal_VarInitTest – Pascal fixture VarInitTest
[PASS] pascal_XorExprSuite – Pascal fixture XorExprSuite
[PASS] pascal_YyjsonBuiltinTest – Pascal fixture YyjsonBuiltinTest
[PASS] pascal_cache_staleness – Cache invalidation honours matching timestamps

Ran 114 Pascal test(s); 62 failure(s); 3 skipped

Start 2: clike_tests

2/4 Test #2: clike_tests ......................***Failed 12.39 sec
[PASS] clike_ext_builtin_dump – clike --dump-ext-builtins validates structure
[PASS] clike_cli_version – clike -v reports latest tag
[PASS] clike_cli_dump_ast_json – clike --dump-ast-json emits JSON
[PASS] clike_cli_vm_trace – clike --vm-trace-head produces trace
[FAIL] clike_AssignExprValue – CLike fixture AssignExprValue
stdout mismatch:
--- /home/runner/work/pscal/pscal/Tests/clike/AssignExprValue.out 2025-11-06 19:34:20.896143262 +0000
+++ /tmp/tmp.ICxgg57pln 2025-11-06 19:35:49.844619978 +0000
@@ -1,2 +0,0 @@
-7
-9 9
clike run exited with 1
stderr:
VM Error: Array element type constant index out of range.
[Error Location] Offset: 5, Line: 2
[PASS] clike_Bitwise – CLike fixture Bitwise
[PASS] clike_BreakContinue – CLike fixture BreakContinue
[PASS] clike_BuiltinCase – CLike fixture BuiltinCase
[PASS] clike_Casts – CLike fixture Casts
[FAIL] clike_CharArrayInit – CLike fixture CharArrayInit
stdout mismatch:
--- /home/runner/work/pscal/pscal/Tests/clike/CharArrayInit.out 2025-11-06 19:34:20.896143262 +0000
+++ /tmp/tmp.0c5rC69OTZ 2025-11-06 19:35:50.576622686 +0000
@@ -1 +0,0 @@
-4 a c
clike run exited with 1
stderr:
VM Error: Array element type constant index out of range.
[Error Location] Offset: 5, Line: 2
[PASS] clike_CharByte – CLike fixture CharByte
[PASS] clike_CompoundAssign – CLike fixture CompoundAssign
[FAIL] clike_Const – CLike fixture Const
stdout mismatch:
--- /home/runner/work/pscal/pscal/Tests/clike/Const.out 2025-11-06 19:34:20.896143262 +0000
+++ /tmp/tmp.Y74eROflv5 2025-11-06 19:35:51.017624315 +0000
@@ -1,2 +0,0 @@
-5 20
-C
clike run exited with 1
stderr:
VM Error: Array element type constant index out of range.
[Error Location] Offset: 14, Line: 4
[PASS] clike_DivBehavior – CLike fixture DivBehavior
[PASS] clike_Exit – CLike fixture Exit
[PASS] clike_ExitCode – CLike fixture ExitCode
[PASS] clike_ExtBuiltinEnumerationTest – CLike fixture ExtBuiltinEnumerationTest
[PASS] clike_ExtBuiltinQueryTest – CLike fixture ExtBuiltinQueryTest
[PASS] clike_FileOperations – CLike fixture FileOperations
[PASS] clike_GetPIDExtensionsTest – CLike fixture GetPIDExtensionsTest
[PASS] clike_HttpFetchDataURL – CLike fixture HttpFetchDataURL
[SKIP] clike_HttpServerCases – CLike fixture HttpServerCases
Network tests disabled (set RUN_NET_TESTS=1)
[PASS] clike_IfdefExtended – CLike fixture IfdefExtended
[PASS] clike_ImportSimple – CLike fixture ImportSimple
[PASS] clike_IncDec – CLike fixture IncDec
[PASS] clike_InitTypeError – CLike fixture InitTypeError
[PASS] clike_Int64 – CLike fixture Int64
[FAIL] clike_IntPromotionPreservesType – CLike fixture IntPromotionPreservesType
stdout mismatch:
--- /home/runner/work/pscal/pscal/Tests/clike/IntPromotionPreservesType.out 2025-11-06 19:34:20.896143262 +0000
+++ /tmp/tmp.tEgkqXsz0z 2025-11-06 19:35:53.057631857 +0000
@@ -1,2 +0,0 @@
-0
-1
clike run exited with 1
stderr:
VM Error: Array element type constant index out of range.
[Error Location] Offset: 5, Line: 2
[PASS] clike_LogicalOps – CLike fixture LogicalOps
[PASS] clike_MStreamNilComparison – CLike fixture MStreamNilComparison
[PASS] clike_MStreamWords – CLike fixture MStreamWords
[FAIL] clike_MdArraySuite – CLike fixture MdArraySuite
stdout mismatch:
--- /home/runner/work/pscal/pscal/Tests/clike/MdArraySuite.out 2025-11-06 19:34:20.896143262 +0000
+++ /tmp/tmp.fOzhQjjGh5 2025-11-06 19:35:53.643634074 +0000
@@ -1,26 +0,0 @@
-Running pscal Multi-Dimensional Array Torture Test
-
---- Testing 2D Array (Matrix) ---
-Assigning values to matrix_a[1..3, 0..2]...
-Assignment complete.
-START: 2D Array Checksum after assignment: PASS
-Verifying individual elements...
-START: 2D Access matrix_a[1, 0]: PASS
-START: 2D Access matrix_a[1, 2] (Edge): PASS
-START: 2D Access matrix_a[2, 1]: PASS
-START: 2D Access matrix_a[3, 0] (Edge): PASS
-START: 2D Access matrix_a[3, 2] (Corner): PASS
-START: 2D Modify/Access matrix_a[2, 1]: PASS
-
---- Testing 3D Array (Cube) ---
-Assigning values to cube_a[-1..0, 1..2, 3..4]...
-Assignment complete.
-START: 3D Array Checksum after assignment: PASS
-Verifying individual elements...
-START: 3D Access cube_a[-1, 1, 3] (Corner): PASS
-START: 3D Access cube_a[-1, 2, 4] (Edge): PASS
-START: 3D Access cube_a[0, 1, 3] (Edge): PASS
-START: 3D Access cube_a[0, 2, 4] (Corner): PASS
-START: 3D Modify/Access cube_a[0, 1, 3]: PASS
-
-Multi-Dimensional Array Torture Test Completed.
clike run exited with 1
stderr:
VM Error: Array element type constant index out of range.
[Error Location] Offset: 25, Line: 10
[PASS] clike_MixedCaseFunctionName – CLike fixture MixedCaseFunctionName
[PASS] clike_PathNormalize – CLike fixture PathNormalize
[PASS] clike_Pointer – CLike fixture Pointer
[FAIL] clike_PointerArrayDereference – CLike fixture PointerArrayDereference
stdout mismatch:
--- /home/runner/work/pscal/pscal/Tests/clike/PointerArrayDereference.out 2025-11-06 19:34:20.897143266 +0000
+++ /tmp/tmp.y6vBaVZJf7 2025-11-06 19:35:54.230636331 +0000
@@ -1 +0,0 @@
-le
clike run exited with 1
stderr:
VM Error: Array element type constant index out of range.
[Error Location] Offset: 5, Line: 2
[PASS] clike_PointerTorture – CLike fixture PointerTorture
[PASS] clike_Printf64 – CLike fixture Printf64
[PASS] clike_PrintfFloatLen – CLike fixture PrintfFloatLen
[PASS] clike_PrintfIntLen – CLike fixture PrintfIntLen
[PASS] clike_PrintfIntLenMore – CLike fixture PrintfIntLenMore
[PASS] clike_PrintfTernary – CLike fixture PrintfTernary
[PASS] clike_RealIntAssignmentTest – CLike fixture RealIntAssignmentTest
[PASS] clike_RealIntConversionTest – CLike fixture RealIntConversionTest
[PASS] clike_RealTimeClockExtBuiltinTest – CLike fixture RealTimeClockExtBuiltinTest
[FAIL] clike_RecursiveMutex – CLike fixture RecursiveMutex
clike run exited with 245
[PASS] clike_ScanfFloat – CLike fixture ScanfFloat
[PASS] clike_ScanfString – CLike fixture ScanfString
[PASS] clike_Shifts – CLike fixture Shifts
[PASS] clike_ShortCircuit – CLike fixture ShortCircuit
[FAIL] clike_Sizeof – CLike fixture Sizeof
stdout mismatch:
--- /home/runner/work/pscal/pscal/Tests/clike/Sizeof.out 2025-11-06 19:34:20.897143266 +0000
+++ /tmp/tmp.3xP30PupHZ 2025-11-06 19:35:56.557645297 +0000
@@ -1 +0,0 @@
-4 16
clike run exited with 1
stderr:
VM Error: Array element type constant index out of range.
[Error Location] Offset: 5, Line: 2
[FAIL] clike_SizeofPartialArrayAccess – CLike fixture SizeofPartialArrayAccess
stdout mismatch:
--- /home/runner/work/pscal/pscal/Tests/clike/SizeofPartialArrayAccess.out 2025-11-06 19:34:20.897143266 +0000
+++ /tmp/tmp.ekPP8FyVQD 2025-11-06 19:35:56.707645875 +0000
@@ -1 +0,0 @@
-20
clike run exited with 1
stderr:
VM Error: Array element type constant index out of range.
[Error Location] Offset: 5, Line: 2
[SKIP] clike_SocketBind – CLike fixture SocketBind
Network tests disabled (set RUN_NET_TESTS=1)
[SKIP] clike_SocketBindAddr – CLike fixture SocketBindAddr
Network tests disabled (set RUN_NET_TESTS=1)
[SKIP] clike_SocketSendReceive – CLike fixture SocketSendReceive
Network tests disabled (set RUN_NET_TESTS=1)
[PASS] clike_SqliteSmokeTest – CLike fixture SqliteSmokeTest
[PASS] clike_StringIndexBounds – CLike fixture StringIndexBounds
[PASS] clike_StructParam – CLike fixture StructParam
[PASS] clike_StructReturn – CLike fixture StructReturn
[PASS] clike_Switch – CLike fixture Switch
[FAIL] clike_ThreadJoinArrayExpr – CLike fixture ThreadJoinArrayExpr
stdout mismatch:
--- /home/runner/work/pscal/pscal/Tests/clike/ThreadJoinArrayExpr.out 2025-11-06 19:34:20.898143270 +0000
+++ /tmp/tmp.fAGTgnjG59 2025-11-06 19:35:57.592649286 +0000
@@ -1 +0,0 @@
-done
clike run exited with 1
stderr:
VM Error: Array element type constant index out of range.
[Error Location] Offset: 6, Line: 4
[FAIL] clike_ThreadMutex – CLike fixture ThreadMutex
clike run exited with 245
[PASS] clike_ThreadSpawnJoin – CLike fixture ThreadSpawnJoin
[PASS] clike_ThreadSpawnJoinCase – CLike fixture ThreadSpawnJoinCase
[PASS] clike_ThreadSpawnJoinDebug – CLike fixture ThreadSpawnJoinDebug
[PASS] clike_Topper – CLike fixture Topper
[PASS] clike_TypeError – CLike fixture TypeError
[PASS] clike_VMVersionQueryTest – CLike fixture VMVersionQueryTest
[PASS] clike_Xor – CLike fixture Xor
[PASS] clike_YyjsonBuiltinTest – CLike fixture YyjsonBuiltinTest
[PASS] clike_atoi – CLike fixture atoi
[PASS] clike_double – CLike fixture double
[PASS] clike_dowhile – CLike fixture dowhile
[PASS] clike_float – CLike fixture float
[PASS] clike_for – CLike fixture for
[PASS] clike_for_decl – CLike fixture for_decl
[PASS] clike_function – CLike fixture function
[SKIP] clike_graphics – CLike fixture graphics
Graphics builtins unavailable
[PASS] clike_if – CLike fixture if
[PASS] clike_if_block_decl – CLike fixture if_block_decl
[PASS] clike_itoa – CLike fixture itoa
[PASS] clike_long – CLike fixture long
[PASS] clike_printf – CLike fixture printf
[PASS] clike_random – CLike fixture random
[PASS] clike_scanf – CLike fixture scanf
[PASS] clike_string – CLike fixture string
[PASS] clike_strlen – CLike fixture strlen
[PASS] clike_tb – CLike fixture tb
[PASS] clike_tcs – CLike fixture tcs
[FAIL] clike_tid – CLike fixture tid
stdout mismatch:
--- /home/runner/work/pscal/pscal/Tests/clike/tid.out 2025-11-06 19:34:20.899143274 +0000
+++ /tmp/tmp.kuw1mBnNWL 2025-11-06 19:36:01.775665269 +0000
@@ -1,4 +0,0 @@
-myVar after ++: 11
-myVar after -- twice: 9
-myVar after + step: 14
-myArray[1] after ++: 201
clike run exited with 1
stderr:
VM Error: Array element type constant index out of range.
[Error Location] Offset: 9, Line: 3
[PASS] clike_while – CLike fixture while
[PASS] clike_cache_reuse – Cache reuse surfaces bytecode reuse notice
[PASS] clike_cache_binary_staleness – Binary timestamp invalidates cached bytecode

Ran 93 CLike test(s); 12 failure(s); 5 skipped

Start 3: rea_tests

3/4 Test #3: rea_tests ........................***Failed 6.61 sec
[PASS] rea_ext_builtin_dump – rea --dump-ext-builtins validates structure
[PASS] rea_cli_version – rea -v reports latest tag
[PASS] rea_cli_strict_dump – rea --strict --dump-bytecode-only prints banner
[PASS] rea_cli_no_run – rea --no-run compiles without executing
[FAIL] rea_cli_vm_trace – rea --vm-trace-head produces trace
rea --vm-trace-head exited with 134
[PASS] rea_array_decl – Rea fixture array_decl
[PASS] rea_array_element_read – Rea fixture array_element_read
[PASS] rea_array_literal_init – Rea fixture array_literal_init
[PASS] rea_assign_expr – Rea fixture assign_expr
[FAIL] rea_balls3d_builtin_compare – Rea fixture balls3d_builtin_compare
Rea invocation exited with 245
[FAIL] rea_balls3d_demo_regression – Rea fixture balls3d_demo_regression
stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/rea/balls3d_demo_regression.out 2025-11-06 19:34:20.901143282 +0000
+++ /tmp/tmp.PogSeEgw74 2025-11-06 19:36:03.054669840 +0000
@@ -1,4 +1,4 @@
-After Accelerate: targetFps=153.000 frameDelay=6.000 deltaTime=0.006536 minSpeed=294.000 maxSpeed=1666.000 cameraDistance=1201.200
+After Accelerate: targetFps=153.000 frameDelay=6.536 deltaTime=0.006536 minSpeed=294.000 maxSpeed=1666.000 cameraDistance=1201.200
Ball 0: pos=(-120.000 -> -118.183, -60.000 -> -58.962, -180.000 -> -178.442) vel=(294.000, 294.000, 294.000) screenR=(0.000 -> 33.444) depthShade=(-1.000 -> 0.668) light=0.000 -> 0.764 highlight=0.000 -> 0.471 highlightPos=(451.353, 452.086) highlightRadius=15.050
Ball 1: pos=(96.000 -> 94.702, 42.000 -> 43.363, -220.000 -> -220.584) vel=(-294.000, 294.000, -294.000) screenR=(0.000 -> 26.553) depthShade=(-1.000 -> 0.767) light=0.000 -> 0.859 highlight=0.000 -> 0.646 highlightPos=(778.885, 299.855) highlightRadius=11.949
Ball 2: pos=(0.000 -> 1.038, -120.000 -> -120.389, -260.000 -> -262.142) vel=(294.000, -294.000, -327.690) screenR=(0.000 -> 37.264) depthShade=(-1.000 -> 0.864) light=0.000 -> 0.790 highlight=0.000 -> 0.514 highlightPos=(636.045, 534.311) highlightRadius=16.769
Rea invocation exited with 245
[PASS] rea_block_decl – Rea fixture block_decl
[PASS] rea_bytecode_dump – Rea fixture bytecode_dump
[PASS] rea_bytecode_exec – Rea fixture bytecode_exec
[FAIL] rea_casts – Rea fixture casts
Unexpected stderr:\nmunmap_chunk(): invalid pointer
Rea invocation exited with 250
[PASS] rea_class_decl – Rea fixture class_decl
[PASS] rea_class_instantiation – Rea fixture class_instantiation
[PASS] rea_constructor_default – Rea fixture constructor_default
[SKIP] rea_constructor_init – Rea fixture constructor_init
Skipped via REA_SKIP_TESTS
[FAIL] rea_continue_for – Rea fixture continue_for
Unexpected stderr:\nmunmap_chunk(): invalid pointer
Rea invocation exited with 250
[FAIL] rea_continue_repeat – Rea fixture continue_repeat
Rea invocation exited with 245
[FAIL] rea_continue_while – Rea fixture continue_while
Rea invocation exited with 245
[PASS] rea_expr – Rea fixture expr
[FAIL] rea_ext_builtin_enumeration – Rea fixture ext_builtin_enumeration
Unexpected stderr:\nmunmap_chunk(): invalid pointer
Rea invocation exited with 250
[SKIP] rea_field_access_assign – Rea fixture field_access_assign
Skipped via REA_SKIP_TESTS
[SKIP] rea_field_access_read – Rea fixture field_access_read
Skipped via REA_SKIP_TESTS
[FAIL] rea_for_local_decl – Rea fixture for_local_decl
Unexpected stderr:\nmunmap_chunk(): invalid pointer
Rea invocation exited with 250
[PASS] rea_hex_number – Rea fixture hex_number
[PASS] rea_if – Rea fixture if
[FAIL] rea_ifdef_extended – Rea fixture ifdef_extended
Unexpected stderr:\nmunmap_chunk(): invalid pointer
Rea invocation exited with 250
[FAIL] rea_int_division_and_comments – Rea fixture int_division_and_comments
Unexpected stderr:\nmunmap_chunk(): invalid pointer
Rea invocation exited with 250
[FAIL] rea_mandelbrotrow – Rea fixture mandelbrotrow
Unexpected stderr:\nmunmap_chunk(): invalid pointer
Rea invocation exited with 250
[SKIP] rea_method_this_assign – Rea fixture method_this_assign
Skipped via REA_SKIP_TESTS
[PASS] rea_modulo – Rea fixture modulo
[PASS] rea_myself_keyword – Rea fixture myself_keyword
[SKIP] rea_new_alloc – Rea fixture new_alloc
Skipped via REA_SKIP_TESTS
[SKIP] rea_new_assign_ptr – Rea fixture new_assign_ptr
Skipped via REA_SKIP_TESTS
[PASS] rea_new_local_vtable – Rea fixture new_local_vtable
[PASS] rea_printf_format – Rea fixture printf_format
[FAIL] rea_realtimeclock – Rea fixture realtimeclock
Rea invocation exited with 245
[PASS] rea_scientific_number – Rea fixture scientific_number
[FAIL] rea_short_circuit – Rea fixture short_circuit
Unexpected stderr:\nmunmap_chunk(): invalid pointer
Rea invocation exited with 250
[FAIL] rea_sqlite_smoke – Rea fixture sqlite_smoke
Unexpected stderr:\nmunmap_chunk(): invalid pointer
Rea invocation exited with 250
[PASS] rea_super_constructor – Rea fixture super_constructor
[PASS] rea_super_method – Rea fixture super_method
[PASS] rea_switch_stmt – Rea fixture switch_stmt
[FAIL] rea_thread_spawn_join – Rea fixture thread_spawn_join
Unexpected stderr:\nmunmap_chunk(): invalid pointer
Rea invocation exited with 250
[FAIL] rea_thread_spawn_join_decl – Rea fixture thread_spawn_join_decl
Unexpected stderr:\nmunmap_chunk(): invalid pointer
Rea invocation exited with 250
[PASS] rea_write_sugar – Rea fixture write_sugar
[PASS] rea_writeln_format – Rea fixture writeln_format
[PASS] rea_xor_expr – Rea fixture xor_expr
[FAIL] rea_yyjson_builtin – Rea fixture yyjson_builtin
Unexpected stderr:\nmunmap_chunk(): invalid pointer
Rea invocation exited with 250
[PASS] rea_hangman_example – Hangman example emits vtable before constructor
/home/runner/work/pscal/pscal/Tests/run_rea_tests.sh: line 532: 11506 Aborted (core dumped) HOME="$tmp_home" "$REA_BIN" --verbose CacheTest.rea > "$tmp_home/out1" 2> "$tmp_home/err1"
[FAIL] rea_cache_reuse – Cache reuse surfaces bytecode reuse notice
Initial compile exited with 134
/home/runner/work/pscal/pscal/Tests/run_rea_tests.sh: line 573: 11527 Aborted (core dumped) HOME="$tmp_home" "$REA_BIN" --verbose BinaryTest.rea > "$tmp_home/out1" 2> "$tmp_home/err1"
[FAIL] rea_cache_binary_staleness – Binary timestamp invalidates cached bytecode
Initial compile exited with 134

Ran 55 Rea test(s); 20 failure(s); 6 skipped

Start 4: json2bc_tests

4/4 Test #4: json2bc_tests ....................***Failed 0.03 sec
--- Dumping AST to JSON (stdout) ---

--- AST JSON Dump Complete (stderr print)---

Errors while running CTest

0% tests passed, 4 tests failed out of 4

Total Test time (real) = 27.62 sec

The following tests FAILED:
1 - pascal_tests (Failed)
2 - clike_tests (Failed)
3 - rea_tests (Failed)
4 - json2bc_tests (Failed)
Error: Process completed with exit code 8.

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits. You can see your limits in the Codex usage dashboard.

@emkey1
Copy link
Owner Author

emkey1 commented Nov 6, 2025

@codex please fix the numerous errors your latest changes introduced in the regression tests. See below. If you are feeling generous you could award me extra time allocation given how bad this is.

Test project /home/runner/work/pscal/pscal/build
    Start 1: pascal_tests
1/4 Test #1: pascal_tests .....................***Failed    8.57 sec
[PASS] pascal_ext_builtin_dump – pascal --dump-ext-builtins validates structure
[PASS] pascal_cli_version – pascal -v reports latest tag
[PASS] pascal_cli_dump_ast_json – pascal --dump-ast-json emits JSON
[PASS] pascal_cli_vm_trace – pascal --vm-trace-head produces trace
[FAIL] pascal_compiler_suite – Pascal compiler regression suite
    closure_capture_escape_error: Expected success but compiler exited with -6.
    stderr:
[PASS] pascal_ApiSendReceiveTest – Pascal fixture ApiSendReceiveTest
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  5064 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ArgumentOrderMismatch – Pascal fixture ArgumentOrderMismatch
    stderr mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ArgumentOrderMismatch.err	2025-11-06 19:34:20.891143242 +0000
    +++ /tmp/tmp.rbpWehpAvN	2025-11-06 19:35:41.389590789 +0000
    @@ -1,2 +0,0 @@
    -L13: Compiler Error: argument 1 to 'mix' expects type INTEGER but got REAL.
    -Compilation failed with errors.
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  5104 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ArgumentTypeMismatch – Pascal fixture ArgumentTypeMismatch
    stderr mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ArgumentTypeMismatch.err	2025-11-06 19:34:20.891143242 +0000
    +++ /tmp/tmp.lYrtLdRhkV	2025-11-06 19:35:41.499591138 +0000
    @@ -1,2 +0,0 @@
    -L13: Compiler Error: argument 1 to 'foo' expects type INTEGER but got STRING.
    -Compilation failed with errors.
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  5146 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ArrayArgumentMismatch – Pascal fixture ArrayArgumentMismatch
    stderr mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ArrayArgumentMismatch.err	2025-11-06 19:34:20.891143242 +0000
    +++ /tmp/tmp.wbqZCISuhb	2025-11-06 19:35:41.603591467 +0000
    @@ -1,2 +0,0 @@
    -L12: Compiler Error: argument 1 to 'proc' expects an array but got INTEGER.
    -Compilation failed with errors.
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  5187 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_BitwiseAndExprSuite – Pascal fixture BitwiseAndExprSuite
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/BitwiseAndExprSuite.out	2025-11-06 19:34:20.891143242 +0000
    +++ /tmp/tmp.2zR50WeHFV	2025-11-06 19:35:41.701591778 +0000
    @@ -1,28 +0,0 @@
    -Running pscal Bitwise Shift and Expression Precedence Test Suite
    -
    ---- Testing Simple SHL/SHR ---
    -START: Simple 5 shl 1: PASS
    -START: Simple 5 shl 3: PASS
    -START: Simple 5 shl 10 (Shift out): PASS
    -START: Simple 160 shr 1: PASS
    -START: Simple 160 shr 4: PASS
    -START: Simple 160 shr 8 (Shift out): PASS
    -
    ---- Testing Mixed Precedence ---
    -START: a shl 1 + b: PASS
    -START: a + b shl 1: PASS
    -START: a shl b - c: PASS
    -START: a * b shl c: PASS
    -START: a shl c * b: PASS
    -START: a and b shl 1: PASS
    -START: a shr 1 or b: PASS
    -START: a or b shr 1: PASS
    -START: (a + b) shl c: PASS
    -START: a shl (b - c): PASS
    -
    ---- Testing Boolean/Relational Precedence with Shifts ---
    -START: a shl 1 > b: PASS
    -START: a > b and b_a: PASS
    -START: not b_b and (a shr 1 = b): PASS
    -
    -Bitwise Shift and Expression Precedence Test Suite Completed.
    pscal run exited with 134
[PASS] pascal_BoolTest – Pascal fixture BoolTest
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  5265 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_BreakLoopTest – Pascal fixture BreakLoopTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/BreakLoopTest.out	2025-11-06 19:34:20.891143242 +0000
    +++ /tmp/tmp.outS1DnOri	2025-11-06 19:35:41.853592259 +0000
    @@ -1,15 +0,0 @@
    -Testing FOR loop break...
    -  1  2  3  4  5
    -Breaking FOR loop at i = 5
    -After FOR loop.
    -
    -Testing WHILE loop break...
    -  1  2  3  4  5  6
    -Breaking WHILE loop at i = 6
    -After WHILE loop.
    -
    -Testing REPEAT loop break...
    -  1  2  3  4  5  6  7
    -Breaking REPEAT loop at i = 7
    -After REPEAT loop.
    -
    pscal run exited with 134
[PASS] pascal_BuiltinCaseNormalization – Pascal fixture BuiltinCaseNormalization
[PASS] pascal_BuiltinProcCallTest – Pascal fixture BuiltinProcCallTest
[PASS] pascal_BytecodeVerificationTest – Pascal fixture BytecodeVerificationTest
[PASS] pascal_CRTRoutineParam – Pascal fixture CRTRoutineParam
[PASS] pascal_CaseStatementSuite – Pascal fixture CaseStatementSuite
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  5462 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_CommandLineParamTest – Pascal fixture CommandLineParamTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/CommandLineParamTest.out	2025-11-06 19:34:20.892143245 +0000
    +++ /tmp/tmp.EZ0fb9rz74	2025-11-06 19:35:42.150593201 +0000
    @@ -1,6 +0,0 @@
    ---- Command Line Parameter Test ---
    -ParamCount reported: 0
    -
    -No command line parameters were provided (after the program name).
    -
    ---- Test Complete ---
    pscal run exited with 134
[PASS] pascal_CompileTimeBounds – Pascal fixture CompileTimeBounds
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  5535 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_CompoundAssignmentTest – Pascal fixture CompoundAssignmentTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/CompoundAssignmentTest.out	2025-11-06 19:34:20.892143245 +0000
    +++ /tmp/tmp.M4fz6wwr9V	2025-11-06 19:35:42.349593831 +0000
    @@ -1,9 +0,0 @@
    -After first round:
    -total=11
    -aces=1
    -After expression round:
    -total=16
    -aces=5
    -After final subtraction:
    -total=11
    -aces=5
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  5581 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ConstArrayTest – Pascal fixture ConstArrayTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ConstArrayTest.out	2025-11-06 19:34:20.892143245 +0000
    +++ /tmp/tmp.VSkf2VwyW6	2025-11-06 19:35:42.461594186 +0000
    @@ -1,18 +0,0 @@
    -Testing Typed Array Constants:
    -------------------------------
    -Simple Const TestStr: Simple
    -
    -Testing CardValues (String Array):
    -CardValues[1] = A(A)
    -CardValues[10] = 10(10)
    -CardValues[13] = K(K)
    -Assigned CardValues[11] to s: J
    -
    -Testing IntSequence (Integer Array):
    -IntSequence[0] = 10(10)
    -IntSequence[1] = -5(-5)
    -IntSequence[4] = 42(42)
    -Looping through IntSequence:
    -10 -5 100 0 42 
    -
    -Test complete.
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  5626 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_CreateThreadClosureCaptureTest – Pascal fixture CreateThreadClosureCaptureTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/CreateThreadClosureCaptureTest.out	2025-11-06 19:34:20.892143245 +0000
    +++ /tmp/tmp.HhqlLxB7Zj	2025-11-06 19:35:42.561594503 +0000
    @@ -1,3 +0,0 @@
    -status=0
    -observed=41
    -stats=0
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  5672 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_CreateThreadClosurePointerTest – Pascal fixture CreateThreadClosurePointerTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/CreateThreadClosurePointerTest.out	2025-11-06 19:34:20.892143245 +0000
    +++ /tmp/tmp.2xjjBEMtiq	2025-11-06 19:35:42.689594909 +0000
    @@ -1,3 +0,0 @@
    -status=0
    -heap=42
    -stats=0
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  5720 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_CreateThreadSmoke – Pascal fixture CreateThreadSmoke
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/CreateThreadSmoke.out	2025-11-06 19:34:20.892143245 +0000
    +++ /tmp/tmp.p0ZFpNtFRg	2025-11-06 19:35:42.807595282 +0000
    @@ -1 +0,0 @@
    -worker
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  5767 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_CreateThreadWithArg – Pascal fixture CreateThreadWithArg
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/CreateThreadWithArg.out	2025-11-06 19:34:20.892143245 +0000
    +++ /tmp/tmp.cH7qZX2Zo3	2025-11-06 19:35:42.934595685 +0000
    @@ -1 +0,0 @@
    -42
    pscal run exited with 134
[PASS] pascal_DosUnitTest – Pascal fixture DosUnitTest
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  5849 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_DynamicArraySetLength – Pascal fixture DynamicArraySetLength
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/DynamicArraySetLength.out	2025-11-06 19:34:20.892143245 +0000
    +++ /tmp/tmp.IG2WWhT5Z7	2025-11-06 19:35:43.090596179 +0000
    @@ -1 +0,0 @@
    -PASS: Dynamic array SetLength preserves contents and defaults
    pscal run exited with 134
[PASS] pascal_EnumComparisonTest – Pascal fixture EnumComparisonTest
[PASS] pascal_EnumForLoop – Pascal fixture EnumForLoop
[PASS] pascal_EofDefaultInput – Pascal fixture EofDefaultInput
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  5979 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ExitEarlyTest – Pascal fixture ExitEarlyTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ExitEarlyTest.out	2025-11-06 19:34:20.892143245 +0000
    +++ /tmp/tmp.DjgMB9UsuY	2025-11-06 19:35:43.294596826 +0000
    @@ -1,3 +0,0 @@
    -Start
    -Inside Foo
    -After Foo
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  6025 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ExitFunctionReturnTest – Pascal fixture ExitFunctionReturnTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ExitFunctionReturnTest.out	2025-11-06 19:34:20.892143245 +0000
    +++ /tmp/tmp.ake5N438GR	2025-11-06 19:35:43.397597152 +0000
    @@ -1 +0,0 @@
    -ok
    pscal run exited with 134
[PASS] pascal_ExtBuiltinEnumerationTest – Pascal fixture ExtBuiltinEnumerationTest
[PASS] pascal_ExtBuiltinQueryTest – Pascal fixture ExtBuiltinQueryTest
[PASS] pascal_ExtendedBuiltinsTest – Pascal fixture ExtendedBuiltinsTest
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  6157 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_FileIOEdgeTests – Pascal fixture FileIOEdgeTests
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/FileIOEdgeTests.out	2025-11-06 19:34:20.892143245 +0000
    +++ /tmp/tmp.4JT5S8sk8P	2025-11-06 19:35:43.612597834 +0000
    @@ -1,10 +0,0 @@
    ---- Starting File I/O Edge Tests ---
    -Test: Setup: create edge_input.txt ... PASS
    -Test: Reset edge_input.txt ... PASS
    -Test: Empty line -> s="" ... PASS
    -Test: Mixed types parse (i=99, r~3.14, c=Z, s="hello there") ... PASS
    -Test: Token split without space (i=42, s="abc") ... PASS
    -Test: Spaces-only line triggers IOResult<>0 ... PASS
    -Test: Single char line -> c=Z ... PASS
    -Test: Close edge_input.txt ... PASS
    ---- Edge Tests Complete ---
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  6203 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_FileOfRecordRoundTrip – Pascal fixture FileOfRecordRoundTrip
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/FileOfRecordRoundTrip.out	2025-11-06 19:34:20.892143245 +0000
    +++ /tmp/tmp.TXsi0X5Ivh	2025-11-06 19:35:43.723598185 +0000
    @@ -1,4 +0,0 @@
    -START: First name: PASS
    -START: First age: PASS
    -START: Second name: PASS
    -START: Second age: PASS
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  6248 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_FormattingTestSuite – Pascal fixture FormattingTestSuite
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/FormattingTestSuite.out	2025-11-06 19:34:20.892143245 +0000
    +++ /tmp/tmp.zDvyAXgaVN	2025-11-06 19:35:43.822598499 +0000
    @@ -1,31 +0,0 @@
    -Running pscal Formatting Test Suite
    -===================================
    -(Check output visually against comments in source code)
    -
    ---- Testing Integer Formatting (:width) ---
    -Positive Integer Tests:
    -Val=123< :5 >  123< :3 >123< :1 >123<
    -Negative Integer Tests:
    -Val=-45< :5 >  -45< :3 >-45< :1 >-45<
    -Zero Integer Tests:
    -Val=0< :5 >    0< :1 >0<
    -
    ---- Testing Real Formatting (:width, :width:decimals) ---
    -Positive Real Tests:
    -Val=123.4567< :10:2 >    123.46< :7:1 >  123.5< :5:0 >  123< :10 >1.234567E+02<
    -Negative Real Tests:
    -Val=-98.76< :8:1 >   -98.8< :5:0 >  -99< :12 >-9.876000E+01<
    -Zero Real Tests:
    -Val=0.0< :8:2 >    0.00< :5 >0.000000E+00<
    -
    ---- Testing String Formatting (:width) ---
    -Short String Tests:
    -Val=Hi< :5 >   Hi< :2 >Hi< :1 >H<
    -Longer String Tests:
    -Val=Pascal< :10 >    Pascal< :6 >Pascal< :4 >Pasc<
    -
    ---- Testing Other Types (Behavior May Vary) ---
    -Char=X< :5 >    X<
    -Bool=TRUE< :8 >    TRUE< :8 >   FALSE<
    -
    -Formatting Test Suite Completed.
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  6294 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_FuncPtrIndirectCall – Pascal fixture FuncPtrIndirectCall
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/FuncPtrIndirectCall.out	2025-11-06 19:34:20.892143245 +0000
    +++ /tmp/tmp.vUzelyDY5K	2025-11-06 19:35:43.935598857 +0000
    @@ -1 +0,0 @@
    -42
    pscal run exited with 134
[SKIP] pascal_GetScreenSizeTest – Pascal fixture GetScreenSizeTest
    Graphics builtins unavailable
[PASS] pascal_HttpAsyncFileURL – Pascal fixture HttpAsyncFileURL
[PASS] pascal_HttpFetchDataURL – Pascal fixture HttpFetchDataURL
[PASS] pascal_HttpHeadersFileURL – Pascal fixture HttpHeadersFileURL
[PASS] pascal_HttpRequestToFileFileURL – Pascal fixture HttpRequestToFileFileURL
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  6465 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_IfdefExtendedTest – Pascal fixture IfdefExtendedTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/IfdefExtendedTest.out	2025-11-06 19:34:20.893143249 +0000
    +++ /tmp/tmp.U0WoxmlTsd	2025-11-06 19:35:44.190599665 +0000
    @@ -1 +0,0 @@
    -1 2 1 0
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  6509 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_InterfaceAssertionFailure – Pascal fixture InterfaceAssertionFailure
    stderr mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/InterfaceAssertionFailure.err	2025-11-06 19:34:20.893143249 +0000
    +++ /tmp/tmp.hqGFSE1LcY	2025-11-06 19:35:44.312600052 +0000
    @@ -1,3 +0,0 @@
    -VM Error: Interface assertion expected 'tfilegreeter' but receiver is 'tconsolegreeter'.
    -[Error Location] Offset: 82, Line: 33
    -
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  6549 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_InterfaceAssertionSuccess – Pascal fixture InterfaceAssertionSuccess
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/InterfaceAssertionSuccess.out	2025-11-06 19:34:20.893143249 +0000
    +++ /tmp/tmp.b1pVfdUXQD	2025-11-06 19:35:44.407600353 +0000
    @@ -1,3 +0,0 @@
    -as ok
    -is ok
    -greet: through interface
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  6595 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_InterfaceCastMissingMethod – Pascal fixture InterfaceCastMissingMethod
    stderr mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/InterfaceCastMissingMethod.err	2025-11-06 19:34:20.893143249 +0000
    +++ /tmp/tmp.AityhtZuGh	2025-11-06 19:35:44.529600740 +0000
    @@ -1,2 +0,0 @@
    -L21: Compiler Error: Record 'tincompletewidget' is missing virtual method 'dowork' required by interface 'iwidget'.
    -Compilation failed with errors.
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  6638 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_InterfaceCastParamMismatch – Pascal fixture InterfaceCastParamMismatch
    stderr mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/InterfaceCastParamMismatch.err	2025-11-06 19:34:20.893143249 +0000
    +++ /tmp/tmp.rlIvsw22vT	2025-11-06 19:35:44.633601069 +0000
    @@ -1,2 +0,0 @@
    -L22: Compiler Error: Method 'add' on record 'tbadadder' must take 2 parameter(s) to satisfy interface 'iadder' (found 1).
    -Compilation failed with errors.
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  6680 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_InterfaceCastValidation – Pascal fixture InterfaceCastValidation
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/InterfaceCastValidation.out	2025-11-06 19:34:20.893143249 +0000
    +++ /tmp/tmp.966I6hAQGY	2025-11-06 19:35:44.746601427 +0000
    @@ -1,3 +0,0 @@
    -greeter says: hello world
    -sum: 5
    -mixed: 4, 5
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  6730 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_InterfaceDispatch – Pascal fixture InterfaceDispatch
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/InterfaceDispatch.out	2025-11-06 19:34:20.893143249 +0000
    +++ /tmp/tmp.L6leD80GZF	2025-11-06 19:35:44.859601785 +0000
    @@ -1,17 +0,0 @@
    -Priming console logger
    -[console] system boot
    -Priming buffered logger
    -Broadcasting "server ready" to 2 logger(s)
    -  using console logger
    -[console] server ready
    -  using buffered logger
    -[buffer] flushing 4 message(s)
    -[buffer] system boot
    -[buffer] server ready
    -[buffer] queued event #1
    -[buffer] queued event #2
    -[buffer] flushing 1 message(s)
    -[buffer] queued event #3
    -[console] final console message
    -[console] --- flush complete ---
    -[buffer] (buffer empty)
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  6775 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_InterfaceNilComparisonTest – Pascal fixture InterfaceNilComparisonTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/InterfaceNilComparisonTest.out	2025-11-06 19:34:20.893143249 +0000
    +++ /tmp/tmp.oDmH6SFeEA	2025-11-06 19:35:44.974602150 +0000
    @@ -1,6 +0,0 @@
    -initial eq nil ok
    -initial ne nil ok
    -assigned ne nil ok
    -assigned eq nil ok
    -reset eq nil ok
    -reset ne nil ok
    pscal run exited with 134
[PASS] pascal_InvalidArrayBounds – Pascal fixture InvalidArrayBounds
[PASS] pascal_LowHighCharTest – Pascal fixture LowHighCharTest
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  6878 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_LowHighDynamicArrayTest – Pascal fixture LowHighDynamicArrayTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/LowHighDynamicArrayTest.out	2025-11-06 19:34:20.893143249 +0000
    +++ /tmp/tmp.v0VbJaZRqZ	2025-11-06 19:35:45.154602720 +0000
    @@ -1,14 +0,0 @@
    -START: cards initial Low: PASS
    -START: cards initial High: PASS
    -START: alias initial Low: PASS
    -START: alias initial High: PASS
    -START: cards Append Low: PASS
    -START: cards Append High: PASS
    -START: alias Append Low: PASS
    -START: alias Append High: PASS
    -START: cards shrink Low: PASS
    -START: cards shrink High: PASS
    -START: cards after shrink Append Low: PASS
    -START: cards after shrink Append High: PASS
    -START: alias cleared Low: PASS
    -START: alias cleared High: PASS
    pscal run exited with 134
[PASS] pascal_MalformedUses – Pascal fixture MalformedUses
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  6952 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_MathLibTest – Pascal fixture MathLibTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/MathLibTest.out	2025-11-06 19:34:20.893143249 +0000
    +++ /tmp/tmp.FbHzjBHxhS	2025-11-06 19:35:45.295603167 +0000
    @@ -1,18 +0,0 @@
    -Running MathLib tests
    -
    ---- Testing MathLib ---
    -START: arctan(1): PASS
    -START: arcsin(0.5): PASS
    -START: arccos(0.5): PASS
    -START: cotan(pi/4): PASS
    -START: power(2,3): PASS
    -START: log10(1000): PASS
    -START: sinh(0): PASS
    -START: cosh(0): PASS
    -START: tanh(0): PASS
    -START: max(2,1): PASS
    -START: min(2,1): PASS
    -START: floor(3.7): PASS
    -START: ceil(3.1): PASS
    -
    -MathLib tests completed.
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  6999 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_MathSuite01 – Pascal fixture MathSuite01
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/MathSuite01.out	2025-11-06 19:34:20.893143249 +0000
    +++ /tmp/tmp.1D0LiduLXD	2025-11-06 19:35:45.395603528 +0000
    @@ -1,80 +0,0 @@
    -Running pscal Math Torture Test
    -
    ---- Testing Integer Arithmetic ---
    -START: Int Add (10 + 3): PASS
    -START: Int Subtract (10 - 3): PASS
    -START: Int Multiply (10 * 3): PASS
    -START: Int Div (10 div 3): PASS
    -START: Int Mod (10 mod 3): PASS
    -START: Int Add Negative (10 + -5): PASS
    -START: Int Subtract Negative (10 - -5): PASS
    -START: Int Multiply Negative (10 * -5): PASS
    -START: Int Div Negative (10 div -5): PASS
    -START: Int Mod Negative (10 mod -5): PASS
    -START: Int Neg Subtract Pos (-5 - 3): PASS
    -START: Int Neg Multiply Pos (-5 * 3): PASS
    -START: Int Neg Div Pos (-5 div 3): PASS
    -START: Int Neg Mod Pos (-5 mod 3): PASS
    -
    ---- Testing Real Arithmetic ---
    -START: Real Add (10.5 + 2.0): PASS
    -START: Real Subtract (10.5 - 2.0): PASS
    -START: Real Multiply (10.5 * 2.0): PASS
    -START: Real Divide (10.5 / 2.0): PASS
    -START: Real Add Negative (10.5 + -4.25): PASS
    -START: Real Subtract Negative (10.5 - -4.25): PASS
    -START: Real Multiply Negative (10.5 * -4.25): PASS
    -START: Real Divide Negative (10.5 / -4.25): PASS
    -START: Real Neg Subtract Pos (-4.25 - 2.0): PASS
    -START: Real Neg Multiply Pos (-4.25 * 2.0): PASS
    -START: Real Neg Divide Pos (-4.25 / 2.0): PASS
    -
    ---- Testing Mixed Integer/Real Arithmetic ---
    -START: Mixed Add (int + real): PASS
    -START: Mixed Add (real + int): PASS
    -START: Mixed Subtract (int - real): PASS
    -START: Mixed Subtract (real - int): PASS
    -START: Mixed Multiply (int * real): PASS
    -START: Mixed Multiply (real * int): PASS
    -START: Mixed Divide / (int / real): PASS
    -START: Mixed Divide / (real / int): PASS
    -
    ---- Testing Operator Precedence ---
    -START: Precedence (2 + 3 * 4): PASS
    -START: Precedence ((2 + 3) * 4): PASS
    -START: Precedence (4*2 + 3 - 2): PASS
    -START: Precedence (10.0 / 2.0 * 5.0): PASS
    -START: Precedence (10.0 / (2.0 * 5.0)): PASS
    -START: Precedence (10+5 - 2*1.5): PASS
    -
    ---- Testing Built-in Math Functions ---
    -START: Abs (int -5): PASS
    -START: Abs (int 5): PASS
    -START: Abs (real -3.14): PASS
    -START: Abs (real 3.14): PASS
    -START: Abs (real 0.0): PASS
    -START: Sqrt (int 4): PASS
    -START: Sqrt (real 2.0): PASS
    -START: Sqrt (real 0.0): PASS
    -START: Trunc (3.7): PASS
    -START: Trunc (-3.7): PASS
    -START: Trunc (5.0): PASS
    -START: Trunc (0.1): PASS
    -START: Trunc (-0.1): PASS
    -START: Exp (0.0): PASS
    -START: Exp (1.0): PASS
    -START: Exp (-1.0): PASS
    -START: Exp (int 2): PASS
    -START: Ln (1.0): PASS
    -START: Ln (exp(1.0)): PASS
    -START: Ln (10.0): PASS
    -START: Cos (0.0): PASS
    -START: Cos (pi): PASS
    -START: Cos (pi/2): PASS
    -START: Sin (0.0): PASS
    -START: Sin (pi): PASS
    -START: Sin (pi/2): PASS
    -START: Tan (0.0): PASS
    -START: Tan (pi/4): PASS
    -
    -Math Torture Test Completed.
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  7043 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_MultiDimArrayTest – Pascal fixture MultiDimArrayTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/MultiDimArrayTest.out	2025-11-06 19:34:20.893143249 +0000
    +++ /tmp/tmp.T78o27Anjj	2025-11-06 19:35:45.505603935 +0000
    @@ -1,27 +0,0 @@
    -Running pscal Multi-Dimensional Array Torture Test
    -
    ---- Testing 2D Array (Matrix) ---
    -Assigning values to matrix_a[1..3, 0..2]...
    -Assignment complete.
    -START: 2D Array Checksum after assignment: PASS
    -START: 2D Array Checksum after assignment: PASS
    -Verifying individual elements...
    -START: 2D Access matrix_a[1, 0]: PASS
    -START: 2D Access matrix_a[1, 2] (Edge): PASS
    -START: 2D Access matrix_a[2, 1]: PASS
    -START: 2D Access matrix_a[3, 0] (Edge): PASS
    -START: 2D Access matrix_a[3, 2] (Corner): PASS
    -START: 2D Modify/Access matrix_a[2, 1]: PASS
    -
    ---- Testing 3D Array (Cube) ---
    -Assigning values to cube_a[-1..0, 1..2, 3..4]...
    -Assignment complete.
    -START: 3D Array Checksum after assignment: PASS
    -Verifying individual elements...
    -START: 3D Access cube_a[-1, 1, 3] (Corner): PASS
    -START: 3D Access cube_a[-1, 2, 4] (Edge): PASS
    -START: 3D Access cube_a[0, 1, 3] (Edge): PASS
    -START: 3D Access cube_a[0, 2, 4] (Corner): PASS
    -START: 3D Modify/Access cube_a[0, 1, 3]: PASS
    -
    -Multi-Dimensional Array Torture Test Completed.
    pscal run exited with 134
[PASS] pascal_MutexReuseTest – Pascal fixture MutexReuseTest
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  7121 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_NestedRoutineAccessTest – Pascal fixture NestedRoutineAccessTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/NestedRoutineAccessTest.out	2025-11-06 19:34:20.893143249 +0000
    +++ /tmp/tmp.3kg5ChJEFx	2025-11-06 19:35:45.657604497 +0000
    @@ -1,3 +0,0 @@
    -PASS: Nested routines can access outer vars
    -currentline=2
    -outtext=changed
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  7168 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_NestedRoutineSuite – Pascal fixture NestedRoutineSuite
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/NestedRoutineSuite.out	2025-11-06 19:34:20.893143249 +0000
    +++ /tmp/tmp.EkdwvHJ87g	2025-11-06 19:35:45.759604874 +0000
    @@ -1,5 +0,0 @@
    -InnerFunc=9
    -currentline=2
    -outtext=changed
    -CharAt(2)=h
    -g=7
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  7213 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_NestedVarArray – Pascal fixture NestedVarArray
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/NestedVarArray.out	2025-11-06 19:34:20.894143254 +0000
    +++ /tmp/tmp.0AIoxIDQyB	2025-11-06 19:35:45.884605336 +0000
    @@ -1 +0,0 @@
    -PASS: VAR array accessed through multiple nested procedures
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  7260 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_OpenArrayBaseTypeMismatch – Pascal fixture OpenArrayBaseTypeMismatch
    stderr mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/OpenArrayBaseTypeMismatch.err	2025-11-06 19:34:20.894143254 +0000
    +++ /tmp/tmp.r3I615ihoY	2025-11-06 19:35:46.007605791 +0000
    @@ -1,2 +0,0 @@
    -L10: Compiler Error: argument 1 to 'proc' expects type ARRAY OF INTEGER but got ARRAY OF REAL.
    -Compilation failed with errors.
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  7301 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_OpenArrayParam – Pascal fixture OpenArrayParam
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  7344 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_OutContextualKeywordTest – Pascal fixture OutContextualKeywordTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/OutContextualKeywordTest.out	2025-11-06 19:34:20.894143254 +0000
    +++ /tmp/tmp.qpRTBHxlgw	2025-11-06 19:35:46.211606545 +0000
    @@ -1,3 +0,0 @@
    -after Increment: outValue=42
    -global out identifier=3
    -local out identifier=10
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  7390 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_PointerTortureTest – Pascal fixture PointerTortureTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/PointerTortureTest.out	2025-11-06 19:34:20.894143254 +0000
    +++ /tmp/tmp.9fi7TOeM0l	2025-11-06 19:35:46.328606978 +0000
    @@ -1,64 +0,0 @@
    -Running pscal Pointer Torture Test
    -
    ---- Testing Integer Pointers ---
    -1. Initialization and Nil Checks...
    -START: intPtr1 initialized to nil: PASS
    -START: intPtr2 initialized to nil: PASS
    -START: intPtr1 = intPtrNil (nil comparison): PASS
    -START: intPtr1 <> nil (should be false): PASS
    -2. Allocation with new()...
    -START: intPtr1 is not nil after new(): PASS
    -3. Assignment via Dereference...
    -START: Assign and read intPtr1^: PASS
    -4. Pointer Assignment (Aliasing)...
    -START: intPtr2 is not nil after assignment: PASS
    -START: intPtr1 = intPtr2 (same address): PASS
    -START: Read intPtr2^ after aliasing: PASS
    -5. Modifying through alias...
    -START: Read intPtr2^ after modification: PASS
    -START: Read intPtr1^ after modification via intPtr2: PASS
    -START: Read intPtr1^ after modification: PASS
    -START: Read intPtr2^ after modification via intPtr1: PASS
    -6. Disposal...
    -START: intPtr1 is nil after dispose(intPtr1): PASS
    -7. Disposing nil pointer...
    -START: intPtrNil is nil before dispose: PASS
    -START: intPtrNil is still nil after dispose(nil): PASS
    -8. Disposing already disposed memory (via alias)...
    -   Skipping dispose(intPtr2) because it was already nil (implies dispose(p1) affects aliases).
    -9. Re-allocating disposed pointer...
    -START: intPtr1 is not nil after re-allocation: PASS
    -START: Assign/read after re-allocation: PASS
    -START: intPtr1 is nil after final dispose: PASS
    -
    ---- Testing String Pointers ---
    -START: strPtr1 initialized to nil: PASS
    -START: strPtr1 not nil after new(): PASS
    -START: strPtr1^ initial value: PASS
    -START: Assign/read strPtr1^: PASS
    -START: Read strPtr1^ after modification via strPtr2: PASS
    -START: strPtr1 is nil after dispose: PASS
    -
    ---- Testing Record Pointers ---
    -START: recPtrA initialized to nil: PASS
    -START: recPtrA = recPtrNil: PASS
    -2. Allocation...
    -START: recPtrA not nil after new(): PASS
    -START: Initial recPtrA^.id: PASS
    -START: Initial recPtrA^.label: PASS
    -START: Initial recPtrA^.value: PASS
    -3. Assigning field values...
    -START: Read recPtrA^.id after assignment: PASS
    -START: Read recPtrA^.label after assignment: PASS
    -START: Read recPtrA^.value after assignment: PASS
    -4. Pointer Assignment (Aliasing)...
    -START: recPtrA = recPtrB: PASS
    -START: Read recPtrB^.id via alias: PASS
    -5. Modifying via alias...
    -START: Read recPtrA^.id after modification via B: PASS
    -START: Read recPtrA^.label after modification via B: PASS
    -6. Disposal...
    -START: recPtrA is nil after dispose: PASS
    -START: recPtrNil is still nil after dispose(nil): PASS
    -
    -Pointer Torture Test Completed.
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  7438 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_PrimitiveArgCall – Pascal fixture PrimitiveArgCall
    pscal run exited with 134
[PASS] pascal_PrintfFloatLenPascal – Pascal fixture PrintfFloatLenPascal
[PASS] pascal_PrintfIntLenPascal – Pascal fixture PrintfIntLenPascal
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  7538 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ProcPtrAssign – Pascal fixture ProcPtrAssign
    pscal run exited with 134
[PASS] pascal_ProcPtrAssignMismatch – Pascal fixture ProcPtrAssignMismatch
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  7606 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ProcPtrIndirectCall – Pascal fixture ProcPtrIndirectCall
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ProcPtrIndirectCall.out	2025-11-06 19:34:20.894143254 +0000
    +++ /tmp/tmp.YKBPIlXpbF	2025-11-06 19:35:46.750608538 +0000
    @@ -1 +0,0 @@
    -ok
    pscal run exited with 134
[PASS] pascal_ProcPtrParamBad – Pascal fixture ProcPtrParamBad
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  7679 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ProcPtrParamOK – Pascal fixture ProcPtrParamOK
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  7721 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ProcPtrParamSemicolon – Pascal fixture ProcPtrParamSemicolon
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  7761 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ProcPtrReturnClosureTest – Pascal fixture ProcPtrReturnClosureTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ProcPtrReturnClosureTest.out	2025-11-06 19:34:20.894143254 +0000
    +++ /tmp/tmp.CcLBdr85A4	2025-11-06 19:35:47.113609880 +0000
    @@ -1,5 +0,0 @@
    -A->1
    -A->2
    -B->8
    -A->3
    -B->6
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  7807 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ProcVarLocalScope – Pascal fixture ProcVarLocalScope
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ProcVarLocalScope.out	2025-11-06 19:34:20.894143254 +0000
    +++ /tmp/tmp.qggjWvnQUI	2025-11-06 19:35:47.237610339 +0000
    @@ -1,3 +0,0 @@
    -inc 2
    -inc 3
    -eval=12
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  7855 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ProcedureResultParam – Pascal fixture ProcedureResultParam
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ProcedureResultParam.out	2025-11-06 19:34:20.894143254 +0000
    +++ /tmp/tmp.lB8EJAeXs5	2025-11-06 19:35:47.353610767 +0000
    @@ -1 +0,0 @@
    -result=14
    pscal run exited with 134
[PASS] pascal_ProgramFileList – Pascal fixture ProgramFileList
[PASS] pascal_ReadlnString – Pascal fixture ReadlnString
[PASS] pascal_RealExponentTest – Pascal fixture RealExponentTest
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  7987 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_RealIntConversionTest – Pascal fixture RealIntConversionTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/RealIntConversionTest.out	2025-11-06 19:34:20.894143254 +0000
    +++ /tmp/tmp.SNXsGCbciZ	2025-11-06 19:35:47.571611573 +0000
    @@ -1,5 +0,0 @@
    -5.0
    -7.0
    -10.0
    -2.0
    -7.0
    pscal run exited with 134
[PASS] pascal_RealIntOverflowTest – Pascal fixture RealIntOverflowTest
[PASS] pascal_RealTimeClockExtBuiltinTest – Pascal fixture RealTimeClockExtBuiltinTest
[PASS] pascal_RecordFieldIndexTest – Pascal fixture RecordFieldIndexTest
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  8120 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_RecordMethodDispatch – Pascal fixture RecordMethodDispatch
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/RecordMethodDispatch.out	2025-11-06 19:34:20.894143254 +0000
    +++ /tmp/tmp.9vY8T3zD1G	2025-11-06 19:35:47.783612357 +0000
    @@ -1 +0,0 @@
    -ready
    pscal run exited with 134
[PASS] pascal_RecordsArray – Pascal fixture RecordsArray
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  8192 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_RecursiveMutexTest – Pascal fixture RecursiveMutexTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/RecursiveMutexTest.out	2025-11-06 19:34:20.895143258 +0000
    +++ /tmp/tmp.ECctd5Y2XT	2025-11-06 19:35:47.922612871 +0000
    @@ -1,2 +0,0 @@
    -inside
    -done
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  8239 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ReverseStringTest – Pascal fixture ReverseStringTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ReverseStringTest.out	2025-11-06 19:34:20.895143258 +0000
    +++ /tmp/tmp.V1qyS6eUnL	2025-11-06 19:35:48.036613293 +0000
    @@ -1 +0,0 @@
    -lacsp
    pscal run exited with 134
[SKIP] pascal_SDLFeaturesTest – Pascal fixture SDLFeaturesTest
    Graphics builtins unavailable
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 264:  8291 Aborted                 (core dumped) ( cd "$SCRIPT_DIR" && "$PASCAL_BIN" "${PASCAL_ARGS[@]}" --dump-bytecode-only "Pascal/$test_name" ) > /dev/null 2> "$disasm_stderr"
[FAIL] pascal_ShortCircuitTest – Pascal fixture ShortCircuitTest
    Disassembly exited with status 134
    Disassembly stderr:\n--- Compiling Main Program AST to Bytecode ---
    double free or corruption (out)
[SKIP] pascal_SocketSendReceiveTest – Pascal fixture SocketSendReceiveTest
    Network tests disabled (set RUN_NET_TESTS=1)
[PASS] pascal_SqliteSmokeTest – Pascal fixture SqliteSmokeTest
[PASS] pascal_StrBuiltinTest – Pascal fixture StrBuiltinTest
[PASS] pascal_StringTruncationTest – Pascal fixture StringTruncationTest
[PASS] pascal_SuccEnumTest – Pascal fixture SuccEnumTest
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  8446 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_SwapArrayElements – Pascal fixture SwapArrayElements
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  8485 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_TestFileOperations – Pascal fixture TestFileOperations
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/TestFileOperations.out	2025-11-06 19:34:20.895143258 +0000
    +++ /tmp/tmp.rFkUhAOia5	2025-11-06 19:35:48.490614971 +0000
    @@ -1,22 +0,0 @@
    -Running pscal File I/O Test Suite...
    ---- Testing Basic File Read/Write ---
    -START: IOResult after successful rewrite: PASS
    -START: IOResult after successful writeln: PASS
    -START: IOResult after successful close: PASS
    ---- Testing File Read ---
    -START: IOResult after successful reset: PASS
    -START: IOResult after successful readln 1: PASS
    -START: File Read Test (Line 1): PASS
    -START: IOResult after successful readln 2: PASS
    -START: File Read Test (Line 2): PASS
    -START: IOResult after successful close (read): PASS
    ---- Testing Append ---
    -START: IOResult after successful append: PASS
    -START: Append writes at end: PASS
    ---- Testing Rename and Erase ---
    -START: IOResult after successful rename: PASS
    -START: IOResult after successful erase: PASS
    ---- Testing IOResult on Error ---
    -START: IOResult Error Test: PASS
    ----
    -File I/O Tests Completed.
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  8530 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_TestIncDecWithVerify – Pascal fixture TestIncDecWithVerify
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/TestIncDecWithVerify.out	2025-11-06 19:34:20.895143258 +0000
    +++ /tmp/tmp.Q1wePqI1pW	2025-11-06 19:35:48.608615407 +0000
    @@ -1,28 +0,0 @@
    ---- Testing Inc/Dec with Verification ---
    -
    -Testing Simple Variable (myVar)...
    -Initial myVar: 10
    -START: Simple Inc(myVar): PASS
    -START: Simple Dec(myVar)*2: PASS
    -START: Simple Inc(myVar, 5): PASS
    -START: Simple Dec(myVar, 3): PASS
    -
    -Testing Record Field (myRecord.count)...
    -Initial myRecord.count: 50
    -START: Record Inc(myRecord.count): PASS
    -START: Record Dec(myRecord.count)*2: PASS
    -START: Record Inc(myRecord.count, 10): PASS
    -START: Record Dec(myRecord.count, 4): PASS
    -
    -Testing Array Element (myArray[2])...
    -Initial myArray[2]: 200
    -START: Array Inc(myArray[2]): PASS
    -START: Array Dec(myArray[2])*2: PASS
    -START: Array Inc(myArray[2], 20): PASS
    -START: Array Dec(myArray[2], 9): PASS
    -
    -Verifying other array elements...
    -START: Array Unchanged myArray[1]: PASS
    -START: Array Unchanged myArray[3]: PASS
    -
    ---- Test Complete ---
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  8577 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_TestSuite7 – Pascal fixture TestSuite7
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/TestSuite7.out	2025-11-06 19:34:20.895143258 +0000
    +++ /tmp/tmp.fjWSqseAwc	2025-11-06 19:35:48.706615770 +0000
    @@ -1,43 +0,0 @@
    -Running pscal Test Suite
    -START: Addition Test: PASS
    -START: Subtraction Test: PASS
    -START: Multiplication Test: PASS
    -START: Integer Division Test: PASS
    -START: Operator Precedence Test: PASS
    -START: For Loop Test: PASS
    -START: While Loop Test: PASS
    -START: Repeat Loop Test: PASS
    -START: For Downto Test: PASS
    -START: String Assignment Test: PASS
    -START: String Concatenation Test: PASS
    -START: Upcase Test: PASS
    -START: Record Field (id) Test: PASS
    -START: Record Field (name) Test: PASS
    -START: Array Access Test: PASS
    -START: Pass by Reference Test: PASS
    -START: Function Test: PASS
    -START: Boolean AND Test: PASS
    -START: Boolean OR Test: PASS
    -START: Boolean NOT Test: PASS
    -START: Case Statement Test: PASS
    -START: File I/O Test: PASS
    -START: Write/Read Roundtrip: PASS
    -START: Writeln/Readln Roundtrip: PASS
    -START: Cosine of 0: PASS
    -START: Sine of 0: PASS
    -START: Tangent of 0: PASS
    -START: Square Root of 4: PASS
    -START: Ln(exp(1)): PASS
    -START: Exp(1): PASS
    -START: Abs(-5.5): PASS
    -START: Trunc(3.7): PASS
    -START: Trunc(-3.7): PASS
    -START: Copy Function Test: PASS
    -START: Pos Function Test: PASS
    -START: Length Function Test: PASS
    -START: Inc Function Test: PASS
    -START: Upcase Function Test: PASS
    -START: File I/O Builtins Test: PASS
    -START: IOResult Test: PASS
    -START: RecordPassing Test: PASS
    -Test Suite Completed
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  8623 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_TestVarParam – Pascal fixture TestVarParam
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/TestVarParam.out	2025-11-06 19:34:20.895143258 +0000
    +++ /tmp/tmp.tkkpFvvoId	2025-11-06 19:35:48.842616273 +0000
    @@ -1,15 +0,0 @@
    -Before calling Increase: x = 10
    -Inside Increase: n = 10, delta = 5
    -Inside Increase after modification: n = 15
    -After calling Increase: x = 15
    -
    -Before calling Test: x = 15, y = 20
    -Inside Test: inVal = 15, refVal = 20
    -Inside Test after modifying refVal: refVal = 40
    -After calling Test: x = 15, y = 40
    -
    -Before calling Double: x = 15
    -Inside Double: n = 15
    -Inside Double after modification: n = 30
    -Result of Double: 30
    -After calling Double: x = 30
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  8673 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ThreadMutexTest – Pascal fixture ThreadMutexTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ThreadMutexTest.out	2025-11-06 19:34:20.895143258 +0000
    +++ /tmp/tmp.cru7qklNkm	2025-11-06 19:35:48.952616680 +0000
    @@ -1 +0,0 @@
    -200
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  8718 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ThreadSpawnJoinTest – Pascal fixture ThreadSpawnJoinTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ThreadSpawnJoinTest.out	2025-11-06 19:34:20.895143258 +0000
    +++ /tmp/tmp.uNFVU5K0zJ	2025-11-06 19:35:49.072617123 +0000
    @@ -1,3 +0,0 @@
    -before spawn
    -worker running
    -after join
    pscal run exited with 134
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 341:  8767 Aborted                 (core dumped) "$PASCAL_BIN" "${PASCAL_ARGS[@]}" "Pascal/$test_name" > "$actual_out" 2> "$actual_err"
[FAIL] pascal_ThreadSpawnNestedCaptureTest – Pascal fixture ThreadSpawnNestedCaptureTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ThreadSpawnNestedCaptureTest.out	2025-11-06 19:34:20.895143258 +0000
    +++ /tmp/tmp.btAAKbMykp	2025-11-06 19:35:49.182617530 +0000
    @@ -1 +0,0 @@
    -captured=42
    pscal run exited with 134
[FAIL] pascal_TrimLeftRightTest – Pascal fixture TrimLeftRightTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/TrimLeftRightTest.out	2025-11-06 19:34:20.895143258 +0000
    +++ /tmp/tmp.o7JbYfVu4F	2025-11-06 19:35:49.240617744 +0000
    @@ -1,2 +1 @@
    ->hello world   <
    ->   hello world<
    +122
    pscal run exited with 1
    stderr:\nRuntime Error: Operands for 'int_div' must be integers. Got STRING and INTEGER.
    [Error Location] Offset: 351, Line: 101
[PASS] pascal_TypeTestSuite – Pascal fixture TypeTestSuite
[PASS] pascal_UpperCaseTest – Pascal fixture UpperCaseTest
/home/runner/work/pscal/pscal/Tests/run_pascal_tests.sh: line 264:  8911 Aborted                 (core dumped) ( cd "$SCRIPT_DIR" && "$PASCAL_BIN" "${PASCAL_ARGS[@]}" --dump-bytecode-only "Pascal/$test_name" ) > /dev/null 2> "$disasm_stderr"
[FAIL] pascal_UserProcCallTest – Pascal fixture UserProcCallTest
    Disassembly exited with status 134
    Disassembly stderr:\n--- Compiling Main Program AST to Bytecode ---
    double free or corruption (out)
[PASS] pascal_VMVersionQueryTest – Pascal fixture VMVersionQueryTest
[PASS] pascal_VarInitTest – Pascal fixture VarInitTest
[PASS] pascal_XorExprSuite – Pascal fixture XorExprSuite
[PASS] pascal_YyjsonBuiltinTest – Pascal fixture YyjsonBuiltinTest
[PASS] pascal_cache_staleness – Cache invalidation honours matching timestamps

Ran 114 Pascal test(s); 62 failure(s); 3 skipped

    Start 2: clike_tests
2/4 Test #2: clike_tests ......................***Failed   12.39 sec
[PASS] clike_ext_builtin_dump – clike --dump-ext-builtins validates structure
[PASS] clike_cli_version – clike -v reports latest tag
[PASS] clike_cli_dump_ast_json – clike --dump-ast-json emits JSON
[PASS] clike_cli_vm_trace – clike --vm-trace-head produces trace
[FAIL] clike_AssignExprValue – CLike fixture AssignExprValue
    stdout mismatch:
    --- /home/runner/work/pscal/pscal/Tests/clike/AssignExprValue.out	2025-11-06 19:34:20.896143262 +0000
    +++ /tmp/tmp.ICxgg57pln	2025-11-06 19:35:49.844619978 +0000
    @@ -1,2 +0,0 @@
    -7
    -9 9
    clike run exited with 1
    stderr:
    VM Error: Array element type constant index out of range.
    [Error Location] Offset: 5, Line: 2
[PASS] clike_Bitwise – CLike fixture Bitwise
[PASS] clike_BreakContinue – CLike fixture BreakContinue
[PASS] clike_BuiltinCase – CLike fixture BuiltinCase
[PASS] clike_Casts – CLike fixture Casts
[FAIL] clike_CharArrayInit – CLike fixture CharArrayInit
    stdout mismatch:
    --- /home/runner/work/pscal/pscal/Tests/clike/CharArrayInit.out	2025-11-06 19:34:20.896143262 +0000
    +++ /tmp/tmp.0c5rC69OTZ	2025-11-06 19:35:50.576622686 +0000
    @@ -1 +0,0 @@
    -4 a c
    clike run exited with 1
    stderr:
    VM Error: Array element type constant index out of range.
    [Error Location] Offset: 5, Line: 2
[PASS] clike_CharByte – CLike fixture CharByte
[PASS] clike_CompoundAssign – CLike fixture CompoundAssign
[FAIL] clike_Const – CLike fixture Const
    stdout mismatch:
    --- /home/runner/work/pscal/pscal/Tests/clike/Const.out	2025-11-06 19:34:20.896143262 +0000
    +++ /tmp/tmp.Y74eROflv5	2025-11-06 19:35:51.017624315 +0000
    @@ -1,2 +0,0 @@
    -5 20
    -C
    clike run exited with 1
    stderr:
    VM Error: Array element type constant index out of range.
    [Error Location] Offset: 14, Line: 4
[PASS] clike_DivBehavior – CLike fixture DivBehavior
[PASS] clike_Exit – CLike fixture Exit
[PASS] clike_ExitCode – CLike fixture ExitCode
[PASS] clike_ExtBuiltinEnumerationTest – CLike fixture ExtBuiltinEnumerationTest
[PASS] clike_ExtBuiltinQueryTest – CLike fixture ExtBuiltinQueryTest
[PASS] clike_FileOperations – CLike fixture FileOperations
[PASS] clike_GetPIDExtensionsTest – CLike fixture GetPIDExtensionsTest
[PASS] clike_HttpFetchDataURL – CLike fixture HttpFetchDataURL
[SKIP] clike_HttpServerCases – CLike fixture HttpServerCases
    Network tests disabled (set RUN_NET_TESTS=1)
[PASS] clike_IfdefExtended – CLike fixture IfdefExtended
[PASS] clike_ImportSimple – CLike fixture ImportSimple
[PASS] clike_IncDec – CLike fixture IncDec
[PASS] clike_InitTypeError – CLike fixture InitTypeError
[PASS] clike_Int64 – CLike fixture Int64
[FAIL] clike_IntPromotionPreservesType – CLike fixture IntPromotionPreservesType
    stdout mismatch:
    --- /home/runner/work/pscal/pscal/Tests/clike/IntPromotionPreservesType.out	2025-11-06 19:34:20.896143262 +0000
    +++ /tmp/tmp.tEgkqXsz0z	2025-11-06 19:35:53.057631857 +0000
    @@ -1,2 +0,0 @@
    -0
    -1
    clike run exited with 1
    stderr:
    VM Error: Array element type constant index out of range.
    [Error Location] Offset: 5, Line: 2
[PASS] clike_LogicalOps – CLike fixture LogicalOps
[PASS] clike_MStreamNilComparison – CLike fixture MStreamNilComparison
[PASS] clike_MStreamWords – CLike fixture MStreamWords
[FAIL] clike_MdArraySuite – CLike fixture MdArraySuite
    stdout mismatch:
    --- /home/runner/work/pscal/pscal/Tests/clike/MdArraySuite.out	2025-11-06 19:34:20.896143262 +0000
    +++ /tmp/tmp.fOzhQjjGh5	2025-11-06 19:35:53.643634074 +0000
    @@ -1,26 +0,0 @@
    -Running pscal Multi-Dimensional Array Torture Test
    -
    ---- Testing 2D Array (Matrix) ---
    -Assigning values to matrix_a[1..3, 0..2]...
    -Assignment complete.
    -START: 2D Array Checksum after assignment: PASS
    -Verifying individual elements...
    -START: 2D Access matrix_a[1, 0]: PASS
    -START: 2D Access matrix_a[1, 2] (Edge): PASS
    -START: 2D Access matrix_a[2, 1]: PASS
    -START: 2D Access matrix_a[3, 0] (Edge): PASS
    -START: 2D Access matrix_a[3, 2] (Corner): PASS
    -START: 2D Modify/Access matrix_a[2, 1]: PASS
    -
    ---- Testing 3D Array (Cube) ---
    -Assigning values to cube_a[-1..0, 1..2, 3..4]...
    -Assignment complete.
    -START: 3D Array Checksum after assignment: PASS
    -Verifying individual elements...
    -START: 3D Access cube_a[-1, 1, 3] (Corner): PASS
    -START: 3D Access cube_a[-1, 2, 4] (Edge): PASS
    -START: 3D Access cube_a[0, 1, 3] (Edge): PASS
    -START: 3D Access cube_a[0, 2, 4] (Corner): PASS
    -START: 3D Modify/Access cube_a[0, 1, 3]: PASS
    -
    -Multi-Dimensional Array Torture Test Completed.
    clike run exited with 1
    stderr:
    VM Error: Array element type constant index out of range.
    [Error Location] Offset: 25, Line: 10
[PASS] clike_MixedCaseFunctionName – CLike fixture MixedCaseFunctionName
[PASS] clike_PathNormalize – CLike fixture PathNormalize
[PASS] clike_Pointer – CLike fixture Pointer
[FAIL] clike_PointerArrayDereference – CLike fixture PointerArrayDereference
    stdout mismatch:
    --- /home/runner/work/pscal/pscal/Tests/clike/PointerArrayDereference.out	2025-11-06 19:34:20.897143266 +0000
    +++ /tmp/tmp.y6vBaVZJf7	2025-11-06 19:35:54.230636331 +0000
    @@ -1 +0,0 @@
    -le
    clike run exited with 1
    stderr:
    VM Error: Array element type constant index out of range.
    [Error Location] Offset: 5, Line: 2
[PASS] clike_PointerTorture – CLike fixture PointerTorture
[PASS] clike_Printf64 – CLike fixture Printf64
[PASS] clike_PrintfFloatLen – CLike fixture PrintfFloatLen
[PASS] clike_PrintfIntLen – CLike fixture PrintfIntLen
[PASS] clike_PrintfIntLenMore – CLike fixture PrintfIntLenMore
[PASS] clike_PrintfTernary – CLike fixture PrintfTernary
[PASS] clike_RealIntAssignmentTest – CLike fixture RealIntAssignmentTest
[PASS] clike_RealIntConversionTest – CLike fixture RealIntConversionTest
[PASS] clike_RealTimeClockExtBuiltinTest – CLike fixture RealTimeClockExtBuiltinTest
[FAIL] clike_RecursiveMutex – CLike fixture RecursiveMutex
    clike run exited with 245
[PASS] clike_ScanfFloat – CLike fixture ScanfFloat
[PASS] clike_ScanfString – CLike fixture ScanfString
[PASS] clike_Shifts – CLike fixture Shifts
[PASS] clike_ShortCircuit – CLike fixture ShortCircuit
[FAIL] clike_Sizeof – CLike fixture Sizeof
    stdout mismatch:
    --- /home/runner/work/pscal/pscal/Tests/clike/Sizeof.out	2025-11-06 19:34:20.897143266 +0000
    +++ /tmp/tmp.3xP30PupHZ	2025-11-06 19:35:56.557645297 +0000
    @@ -1 +0,0 @@
    -4 16
    clike run exited with 1
    stderr:
    VM Error: Array element type constant index out of range.
    [Error Location] Offset: 5, Line: 2
[FAIL] clike_SizeofPartialArrayAccess – CLike fixture SizeofPartialArrayAccess
    stdout mismatch:
    --- /home/runner/work/pscal/pscal/Tests/clike/SizeofPartialArrayAccess.out	2025-11-06 19:34:20.897143266 +0000
    +++ /tmp/tmp.ekPP8FyVQD	2025-11-06 19:35:56.707645875 +0000
    @@ -1 +0,0 @@
    -20
    clike run exited with 1
    stderr:
    VM Error: Array element type constant index out of range.
    [Error Location] Offset: 5, Line: 2
[SKIP] clike_SocketBind – CLike fixture SocketBind
    Network tests disabled (set RUN_NET_TESTS=1)
[SKIP] clike_SocketBindAddr – CLike fixture SocketBindAddr
    Network tests disabled (set RUN_NET_TESTS=1)
[SKIP] clike_SocketSendReceive – CLike fixture SocketSendReceive
    Network tests disabled (set RUN_NET_TESTS=1)
[PASS] clike_SqliteSmokeTest – CLike fixture SqliteSmokeTest
[PASS] clike_StringIndexBounds – CLike fixture StringIndexBounds
[PASS] clike_StructParam – CLike fixture StructParam
[PASS] clike_StructReturn – CLike fixture StructReturn
[PASS] clike_Switch – CLike fixture Switch
[FAIL] clike_ThreadJoinArrayExpr – CLike fixture ThreadJoinArrayExpr
    stdout mismatch:
    --- /home/runner/work/pscal/pscal/Tests/clike/ThreadJoinArrayExpr.out	2025-11-06 19:34:20.898143270 +0000
    +++ /tmp/tmp.fAGTgnjG59	2025-11-06 19:35:57.592649286 +0000
    @@ -1 +0,0 @@
    -done
    clike run exited with 1
    stderr:
    VM Error: Array element type constant index out of range.
    [Error Location] Offset: 6, Line: 4
[FAIL] clike_ThreadMutex – CLike fixture ThreadMutex
    clike run exited with 245
[PASS] clike_ThreadSpawnJoin – CLike fixture ThreadSpawnJoin
[PASS] clike_ThreadSpawnJoinCase – CLike fixture ThreadSpawnJoinCase
[PASS] clike_ThreadSpawnJoinDebug – CLike fixture ThreadSpawnJoinDebug
[PASS] clike_Topper – CLike fixture Topper
[PASS] clike_TypeError – CLike fixture TypeError
[PASS] clike_VMVersionQueryTest – CLike fixture VMVersionQueryTest
[PASS] clike_Xor – CLike fixture Xor
[PASS] clike_YyjsonBuiltinTest – CLike fixture YyjsonBuiltinTest
[PASS] clike_atoi – CLike fixture atoi
[PASS] clike_double – CLike fixture double
[PASS] clike_dowhile – CLike fixture dowhile
[PASS] clike_float – CLike fixture float
[PASS] clike_for – CLike fixture for
[PASS] clike_for_decl – CLike fixture for_decl
[PASS] clike_function – CLike fixture function
[SKIP] clike_graphics – CLike fixture graphics
    Graphics builtins unavailable
[PASS] clike_if – CLike fixture if
[PASS] clike_if_block_decl – CLike fixture if_block_decl
[PASS] clike_itoa – CLike fixture itoa
[PASS] clike_long – CLike fixture long
[PASS] clike_printf – CLike fixture printf
[PASS] clike_random – CLike fixture random
[PASS] clike_scanf – CLike fixture scanf
[PASS] clike_string – CLike fixture string
[PASS] clike_strlen – CLike fixture strlen
[PASS] clike_tb – CLike fixture tb
[PASS] clike_tcs – CLike fixture tcs
[FAIL] clike_tid – CLike fixture tid
    stdout mismatch:
    --- /home/runner/work/pscal/pscal/Tests/clike/tid.out	2025-11-06 19:34:20.899143274 +0000
    +++ /tmp/tmp.kuw1mBnNWL	2025-11-06 19:36:01.775665269 +0000
    @@ -1,4 +0,0 @@
    -myVar after ++: 11
    -myVar after -- twice: 9
    -myVar after + step: 14
    -myArray[1] after ++: 201
    clike run exited with 1
    stderr:
    VM Error: Array element type constant index out of range.
    [Error Location] Offset: 9, Line: 3
[PASS] clike_while – CLike fixture while
[PASS] clike_cache_reuse – Cache reuse surfaces bytecode reuse notice
[PASS] clike_cache_binary_staleness – Binary timestamp invalidates cached bytecode

Ran 93 CLike test(s); 12 failure(s); 5 skipped

    Start 3: rea_tests
3/4 Test #3: rea_tests ........................***Failed    6.61 sec
[PASS] rea_ext_builtin_dump – rea --dump-ext-builtins validates structure
[PASS] rea_cli_version – rea -v reports latest tag
[PASS] rea_cli_strict_dump – rea --strict --dump-bytecode-only prints banner
[PASS] rea_cli_no_run – rea --no-run compiles without executing
[FAIL] rea_cli_vm_trace – rea --vm-trace-head produces trace
    rea --vm-trace-head exited with 134
[PASS] rea_array_decl – Rea fixture array_decl
[PASS] rea_array_element_read – Rea fixture array_element_read
[PASS] rea_array_literal_init – Rea fixture array_literal_init
[PASS] rea_assign_expr – Rea fixture assign_expr
[FAIL] rea_balls3d_builtin_compare – Rea fixture balls3d_builtin_compare
    Rea invocation exited with 245
[FAIL] rea_balls3d_demo_regression – Rea fixture balls3d_demo_regression
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/rea/balls3d_demo_regression.out	2025-11-06 19:34:20.901143282 +0000
    +++ /tmp/tmp.PogSeEgw74	2025-11-06 19:36:03.054669840 +0000
    @@ -1,4 +1,4 @@
    -After Accelerate: targetFps=153.000 frameDelay=6.000 deltaTime=0.006536 minSpeed=294.000 maxSpeed=1666.000 cameraDistance=1201.200
    +After Accelerate: targetFps=153.000 frameDelay=6.536 deltaTime=0.006536 minSpeed=294.000 maxSpeed=1666.000 cameraDistance=1201.200
     Ball 0: pos=(-120.000 -> -118.183, -60.000 -> -58.962, -180.000 -> -178.442) vel=(294.000, 294.000, 294.000) screenR=(0.000 -> 33.444) depthShade=(-1.000 -> 0.668) light=0.000 -> 0.764 highlight=0.000 -> 0.471 highlightPos=(451.353, 452.086) highlightRadius=15.050
     Ball 1: pos=(96.000 -> 94.702, 42.000 -> 43.363, -220.000 -> -220.584) vel=(-294.000, 294.000, -294.000) screenR=(0.000 -> 26.553) depthShade=(-1.000 -> 0.767) light=0.000 -> 0.859 highlight=0.000 -> 0.646 highlightPos=(778.885, 299.855) highlightRadius=11.949
     Ball 2: pos=(0.000 -> 1.038, -120.000 -> -120.389, -260.000 -> -262.142) vel=(294.000, -294.000, -327.690) screenR=(0.000 -> 37.264) depthShade=(-1.000 -> 0.864) light=0.000 -> 0.790 highlight=0.000 -> 0.514 highlightPos=(636.045, 534.311) highlightRadius=16.769
    Rea invocation exited with 245
[PASS] rea_block_decl – Rea fixture block_decl
[PASS] rea_bytecode_dump – Rea fixture bytecode_dump
[PASS] rea_bytecode_exec – Rea fixture bytecode_exec
[FAIL] rea_casts – Rea fixture casts
    Unexpected stderr:\nmunmap_chunk(): invalid pointer
    Rea invocation exited with 250
[PASS] rea_class_decl – Rea fixture class_decl
[PASS] rea_class_instantiation – Rea fixture class_instantiation
[PASS] rea_constructor_default – Rea fixture constructor_default
[SKIP] rea_constructor_init – Rea fixture constructor_init
    Skipped via REA_SKIP_TESTS
[FAIL] rea_continue_for – Rea fixture continue_for
    Unexpected stderr:\nmunmap_chunk(): invalid pointer
    Rea invocation exited with 250
[FAIL] rea_continue_repeat – Rea fixture continue_repeat
    Rea invocation exited with 245
[FAIL] rea_continue_while – Rea fixture continue_while
    Rea invocation exited with 245
[PASS] rea_expr – Rea fixture expr
[FAIL] rea_ext_builtin_enumeration – Rea fixture ext_builtin_enumeration
    Unexpected stderr:\nmunmap_chunk(): invalid pointer
    Rea invocation exited with 250
[SKIP] rea_field_access_assign – Rea fixture field_access_assign
    Skipped via REA_SKIP_TESTS
[SKIP] rea_field_access_read – Rea fixture field_access_read
    Skipped via REA_SKIP_TESTS
[FAIL] rea_for_local_decl – Rea fixture for_local_decl
    Unexpected stderr:\nmunmap_chunk(): invalid pointer
    Rea invocation exited with 250
[PASS] rea_hex_number – Rea fixture hex_number
[PASS] rea_if – Rea fixture if
[FAIL] rea_ifdef_extended – Rea fixture ifdef_extended
    Unexpected stderr:\nmunmap_chunk(): invalid pointer
    Rea invocation exited with 250
[FAIL] rea_int_division_and_comments – Rea fixture int_division_and_comments
    Unexpected stderr:\nmunmap_chunk(): invalid pointer
    Rea invocation exited with 250
[FAIL] rea_mandelbrotrow – Rea fixture mandelbrotrow
    Unexpected stderr:\nmunmap_chunk(): invalid pointer
    Rea invocation exited with 250
[SKIP] rea_method_this_assign – Rea fixture method_this_assign
    Skipped via REA_SKIP_TESTS
[PASS] rea_modulo – Rea fixture modulo
[PASS] rea_myself_keyword – Rea fixture myself_keyword
[SKIP] rea_new_alloc – Rea fixture new_alloc
    Skipped via REA_SKIP_TESTS
[SKIP] rea_new_assign_ptr – Rea fixture new_assign_ptr
    Skipped via REA_SKIP_TESTS
[PASS] rea_new_local_vtable – Rea fixture new_local_vtable
[PASS] rea_printf_format – Rea fixture printf_format
[FAIL] rea_realtimeclock – Rea fixture realtimeclock
    Rea invocation exited with 245
[PASS] rea_scientific_number – Rea fixture scientific_number
[FAIL] rea_short_circuit – Rea fixture short_circuit
    Unexpected stderr:\nmunmap_chunk(): invalid pointer
    Rea invocation exited with 250
[FAIL] rea_sqlite_smoke – Rea fixture sqlite_smoke
    Unexpected stderr:\nmunmap_chunk(): invalid pointer
    Rea invocation exited with 250
[PASS] rea_super_constructor – Rea fixture super_constructor
[PASS] rea_super_method – Rea fixture super_method
[PASS] rea_switch_stmt – Rea fixture switch_stmt
[FAIL] rea_thread_spawn_join – Rea fixture thread_spawn_join
    Unexpected stderr:\nmunmap_chunk(): invalid pointer
    Rea invocation exited with 250
[FAIL] rea_thread_spawn_join_decl – Rea fixture thread_spawn_join_decl
    Unexpected stderr:\nmunmap_chunk(): invalid pointer
    Rea invocation exited with 250
[PASS] rea_write_sugar – Rea fixture write_sugar
[PASS] rea_writeln_format – Rea fixture writeln_format
[PASS] rea_xor_expr – Rea fixture xor_expr
[FAIL] rea_yyjson_builtin – Rea fixture yyjson_builtin
    Unexpected stderr:\nmunmap_chunk(): invalid pointer
    Rea invocation exited with 250
[PASS] rea_hangman_example – Hangman example emits vtable before constructor
/home/runner/work/pscal/pscal/Tests/run_rea_tests.sh: line 532: 11506 Aborted                 (core dumped) HOME="$tmp_home" "$REA_BIN" --verbose CacheTest.rea > "$tmp_home/out1" 2> "$tmp_home/err1"
[FAIL] rea_cache_reuse – Cache reuse surfaces bytecode reuse notice
    Initial compile exited with 134
/home/runner/work/pscal/pscal/Tests/run_rea_tests.sh: line 573: 11527 Aborted                 (core dumped) HOME="$tmp_home" "$REA_BIN" --verbose BinaryTest.rea > "$tmp_home/out1" 2> "$tmp_home/err1"
[FAIL] rea_cache_binary_staleness – Binary timestamp invalidates cached bytecode
    Initial compile exited with 134

Ran 55 Rea test(s); 20 failure(s); 6 skipped

    Start 4: json2bc_tests
4/4 Test #4: json2bc_tests ....................***Failed    0.03 sec
--- Dumping AST to JSON (stdout) ---

--- AST JSON Dump Complete (stderr print)---

Errors while running CTest

0% tests passed, 4 tests failed out of 4

Total Test time (real) =  27.62 sec

The following tests FAILED:
	  1 - pascal_tests (Failed)
	  2 - clike_tests (Failed)
	  3 - rea_tests (Failed)
	  4 - json2bc_tests (Failed)
Error: Process completed with exit code 8.

@chatgpt-codex-connector
Copy link

Summary

Testing

  • ⚠️ Tests/run_pascal_tests.sh --only Pascal/TestIncDecWithVerify (partial log captured; full suite execution exceeded interactive limits)

View task →

@emkey1
Copy link
Owner Author

emkey1 commented Nov 6, 2025

@codex please fix and verify the failing tests...

Test project /home/runner/work/pscal/pscal/build
    Start 1: pascal_tests
1/4 Test #1: pascal_tests .....................***Failed    4.18 sec
[PASS] pascal_ext_builtin_dump – pascal --dump-ext-builtins validates structure
[PASS] pascal_cli_version – pascal -v reports latest tag
[PASS] pascal_cli_dump_ast_json – pascal --dump-ast-json emits JSON
[PASS] pascal_cli_vm_trace – pascal --vm-trace-head produces trace
[PASS] pascal_compiler_suite – Pascal compiler regression suite
[PASS] pascal_ApiSendReceiveTest – Pascal fixture ApiSendReceiveTest
[PASS] pascal_ArgumentOrderMismatch – Pascal fixture ArgumentOrderMismatch
[PASS] pascal_ArgumentTypeMismatch – Pascal fixture ArgumentTypeMismatch
[PASS] pascal_ArrayArgumentMismatch – Pascal fixture ArrayArgumentMismatch
[PASS] pascal_BitwiseAndExprSuite – Pascal fixture BitwiseAndExprSuite
[PASS] pascal_BoolTest – Pascal fixture BoolTest
[PASS] pascal_BreakLoopTest – Pascal fixture BreakLoopTest
[PASS] pascal_BuiltinCaseNormalization – Pascal fixture BuiltinCaseNormalization
[PASS] pascal_BuiltinProcCallTest – Pascal fixture BuiltinProcCallTest
[PASS] pascal_BytecodeVerificationTest – Pascal fixture BytecodeVerificationTest
[PASS] pascal_CRTRoutineParam – Pascal fixture CRTRoutineParam
[PASS] pascal_CaseStatementSuite – Pascal fixture CaseStatementSuite
[PASS] pascal_CommandLineParamTest – Pascal fixture CommandLineParamTest
[PASS] pascal_CompileTimeBounds – Pascal fixture CompileTimeBounds
[PASS] pascal_CompoundAssignmentTest – Pascal fixture CompoundAssignmentTest
[PASS] pascal_ConstArrayTest – Pascal fixture ConstArrayTest
[PASS] pascal_CreateThreadClosureCaptureTest – Pascal fixture CreateThreadClosureCaptureTest
[PASS] pascal_CreateThreadClosurePointerTest – Pascal fixture CreateThreadClosurePointerTest
[PASS] pascal_CreateThreadSmoke – Pascal fixture CreateThreadSmoke
[PASS] pascal_CreateThreadWithArg – Pascal fixture CreateThreadWithArg
[PASS] pascal_DosUnitTest – Pascal fixture DosUnitTest
[PASS] pascal_DynamicArraySetLength – Pascal fixture DynamicArraySetLength
[PASS] pascal_EnumComparisonTest – Pascal fixture EnumComparisonTest
[PASS] pascal_EnumForLoop – Pascal fixture EnumForLoop
[PASS] pascal_EofDefaultInput – Pascal fixture EofDefaultInput
[PASS] pascal_ExitEarlyTest – Pascal fixture ExitEarlyTest
[PASS] pascal_ExitFunctionReturnTest – Pascal fixture ExitFunctionReturnTest
[PASS] pascal_ExtBuiltinEnumerationTest – Pascal fixture ExtBuiltinEnumerationTest
[PASS] pascal_ExtBuiltinQueryTest – Pascal fixture ExtBuiltinQueryTest
[PASS] pascal_ExtendedBuiltinsTest – Pascal fixture ExtendedBuiltinsTest
[PASS] pascal_FileIOEdgeTests – Pascal fixture FileIOEdgeTests
[PASS] pascal_FileOfRecordRoundTrip – Pascal fixture FileOfRecordRoundTrip
[PASS] pascal_FormattingTestSuite – Pascal fixture FormattingTestSuite
[PASS] pascal_FuncPtrIndirectCall – Pascal fixture FuncPtrIndirectCall
[SKIP] pascal_GetScreenSizeTest – Pascal fixture GetScreenSizeTest
    Graphics builtins unavailable
[PASS] pascal_HttpAsyncFileURL – Pascal fixture HttpAsyncFileURL
[PASS] pascal_HttpFetchDataURL – Pascal fixture HttpFetchDataURL
[PASS] pascal_HttpHeadersFileURL – Pascal fixture HttpHeadersFileURL
[PASS] pascal_HttpRequestToFileFileURL – Pascal fixture HttpRequestToFileFileURL
[PASS] pascal_IfdefExtendedTest – Pascal fixture IfdefExtendedTest
[PASS] pascal_InterfaceAssertionFailure – Pascal fixture InterfaceAssertionFailure
[PASS] pascal_InterfaceAssertionSuccess – Pascal fixture InterfaceAssertionSuccess
[PASS] pascal_InterfaceCastMissingMethod – Pascal fixture InterfaceCastMissingMethod
[PASS] pascal_InterfaceCastParamMismatch – Pascal fixture InterfaceCastParamMismatch
[PASS] pascal_InterfaceCastValidation – Pascal fixture InterfaceCastValidation
[PASS] pascal_InterfaceDispatch – Pascal fixture InterfaceDispatch
[PASS] pascal_InterfaceNilComparisonTest – Pascal fixture InterfaceNilComparisonTest
[PASS] pascal_InvalidArrayBounds – Pascal fixture InvalidArrayBounds
[PASS] pascal_LowHighCharTest – Pascal fixture LowHighCharTest
[PASS] pascal_LowHighDynamicArrayTest – Pascal fixture LowHighDynamicArrayTest
[PASS] pascal_MalformedUses – Pascal fixture MalformedUses
[PASS] pascal_MathLibTest – Pascal fixture MathLibTest
[PASS] pascal_MathSuite01 – Pascal fixture MathSuite01
[PASS] pascal_MultiDimArrayTest – Pascal fixture MultiDimArrayTest
[PASS] pascal_MutexReuseTest – Pascal fixture MutexReuseTest
[PASS] pascal_NestedRoutineAccessTest – Pascal fixture NestedRoutineAccessTest
[PASS] pascal_NestedRoutineSuite – Pascal fixture NestedRoutineSuite
[PASS] pascal_NestedVarArray – Pascal fixture NestedVarArray
[PASS] pascal_OpenArrayBaseTypeMismatch – Pascal fixture OpenArrayBaseTypeMismatch
[PASS] pascal_OpenArrayParam – Pascal fixture OpenArrayParam
[PASS] pascal_OutContextualKeywordTest – Pascal fixture OutContextualKeywordTest
[PASS] pascal_PointerTortureTest – Pascal fixture PointerTortureTest
[PASS] pascal_PrimitiveArgCall – Pascal fixture PrimitiveArgCall
[PASS] pascal_PrintfFloatLenPascal – Pascal fixture PrintfFloatLenPascal
[PASS] pascal_PrintfIntLenPascal – Pascal fixture PrintfIntLenPascal
[PASS] pascal_ProcPtrAssign – Pascal fixture ProcPtrAssign
[PASS] pascal_ProcPtrAssignMismatch – Pascal fixture ProcPtrAssignMismatch
[PASS] pascal_ProcPtrIndirectCall – Pascal fixture ProcPtrIndirectCall
[PASS] pascal_ProcPtrParamBad – Pascal fixture ProcPtrParamBad
[PASS] pascal_ProcPtrParamOK – Pascal fixture ProcPtrParamOK
[PASS] pascal_ProcPtrParamSemicolon – Pascal fixture ProcPtrParamSemicolon
[PASS] pascal_ProcPtrReturnClosureTest – Pascal fixture ProcPtrReturnClosureTest
[PASS] pascal_ProcVarLocalScope – Pascal fixture ProcVarLocalScope
[PASS] pascal_ProcedureResultParam – Pascal fixture ProcedureResultParam
[PASS] pascal_ProgramFileList – Pascal fixture ProgramFileList
[PASS] pascal_ReadlnString – Pascal fixture ReadlnString
[PASS] pascal_RealExponentTest – Pascal fixture RealExponentTest
[PASS] pascal_RealIntConversionTest – Pascal fixture RealIntConversionTest
[PASS] pascal_RealIntOverflowTest – Pascal fixture RealIntOverflowTest
[PASS] pascal_RealTimeClockExtBuiltinTest – Pascal fixture RealTimeClockExtBuiltinTest
[PASS] pascal_RecordFieldIndexTest – Pascal fixture RecordFieldIndexTest
[PASS] pascal_RecordMethodDispatch – Pascal fixture RecordMethodDispatch
[PASS] pascal_RecordsArray – Pascal fixture RecordsArray
[PASS] pascal_RecursiveMutexTest – Pascal fixture RecursiveMutexTest
[PASS] pascal_ReverseStringTest – Pascal fixture ReverseStringTest
[SKIP] pascal_SDLFeaturesTest – Pascal fixture SDLFeaturesTest
    Graphics builtins unavailable
[PASS] pascal_ShortCircuitTest – Pascal fixture ShortCircuitTest
[SKIP] pascal_SocketSendReceiveTest – Pascal fixture SocketSendReceiveTest
    Network tests disabled (set RUN_NET_TESTS=1)
[PASS] pascal_SqliteSmokeTest – Pascal fixture SqliteSmokeTest
[PASS] pascal_StrBuiltinTest – Pascal fixture StrBuiltinTest
[PASS] pascal_StringTruncationTest – Pascal fixture StringTruncationTest
[PASS] pascal_SuccEnumTest – Pascal fixture SuccEnumTest
[PASS] pascal_SwapArrayElements – Pascal fixture SwapArrayElements
[PASS] pascal_TestFileOperations – Pascal fixture TestFileOperations
[PASS] pascal_TestIncDecWithVerify – Pascal fixture TestIncDecWithVerify
[PASS] pascal_TestSuite7 – Pascal fixture TestSuite7
[PASS] pascal_TestVarParam – Pascal fixture TestVarParam
[PASS] pascal_ThreadMutexTest – Pascal fixture ThreadMutexTest
[PASS] pascal_ThreadSpawnJoinTest – Pascal fixture ThreadSpawnJoinTest
[FAIL] pascal_ThreadSpawnNestedCaptureTest – Pascal fixture ThreadSpawnNestedCaptureTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/ThreadSpawnNestedCaptureTest.out	2025-11-06 20:46:36.519539189 +0000
    +++ /tmp/tmp.dVnuUNODQ1	2025-11-06 20:48:02.825774960 +0000
    @@ -1 +1 @@
    -captured=42
    +captured=41
[FAIL] pascal_TrimLeftRightTest – Pascal fixture TrimLeftRightTest
    stdout mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/TrimLeftRightTest.out	2025-11-06 20:46:36.519539189 +0000
    +++ /tmp/tmp.SgsJWRrDRx	2025-11-06 20:48:02.864774996 +0000
    @@ -1,2 +0,0 @@
    ->hello world   <
    ->   hello world<
    pscal run exited with 1
    stderr:\nRuntime Error: Operands must be numbers for arithmetic operation '+' (or strings/chars for '+'). Got CHAR and NIL
    [Error Location] Offset: 902, Line: 7
[PASS] pascal_TypeTestSuite – Pascal fixture TypeTestSuite
[PASS] pascal_UpperCaseTest – Pascal fixture UpperCaseTest
[FAIL] pascal_UserProcCallTest – Pascal fixture UserProcCallTest
    Disassembly mismatch:\n--- /home/runner/work/pscal/pscal/Tests/Pascal/UserProcCallTest.disasm	2025-11-06 20:46:36.519539189 +0000
    +++ /tmp/tmp.D8WkJX8NNe	2025-11-06 20:48:02.986775106 +0000
    @@ -5,60 +5,60 @@
     0000    1 CONSTANT            1 'nil'
     0002    | DEFINE_GLOBAL    NameIdx:0   'myself' Type:POINTER ('')
     0007   17 DEFINE_GLOBAL    NameIdx:3   'data' Type:ARRAY Dims:1 [1..3] of INTEGER ('integer')
    -0017   18 DEFINE_GLOBAL    NameIdx:7   'i' Type:INTEGER ('integer')
    -0022    6 JUMP               10 (to 0035)
    +0018   18 DEFINE_GLOBAL    NameIdx:7   'i' Type:INTEGER ('integer')
    +0023    6 JUMP               10 (to 0036)
     
    ---- Function doubleit (at 0025) ---
    -0025    8 GET_LOCAL           0 (slot)
    -0027    | CONSTANT            8 '2'
    -0029    | MULTIPLY
    -0030    | SET_LOCAL           1 (slot)
    -0032    6 GET_LOCAL           1 (slot)
    -0034    | RETURN
    -0035   11 JUMP               13 (to 0051)
    +--- Function doubleit (at 0026) ---
    +0026    8 GET_LOCAL           0 (slot)
    +0028    | CONSTANT            8 '2'
    +0030    | MULTIPLY
    +0031    | SET_LOCAL           1 (slot)
    +0033    6 GET_LOCAL           1 (slot)
    +0035    | RETURN
    +0036   11 JUMP               13 (to 0052)
     
    ---- Procedure printvalue (at 0038) ---
    -0038   13 CONSTANT            4 '1'
    -0040    | CONSTANT            9 'value='
    -0042    | GET_LOCAL           0 (slot)
    -0044    | CALL_BUILTIN_PROC   176 'write' (3 args)
    -0050   11 RETURN
    -0051   20 CONSTANT            4 '1'
    -0053    | CONSTANT           11 'double='
    -0055    | CONSTANT           12 '5'
    -0057    | CALL_USER_PROC      13 'doubleit' @0025 (1 args)
    -0061    | CALL_BUILTIN_PROC   176 'write' (3 args)
    -0067   21 CONSTANT            5 '3'
    -0069    | GET_GLOBAL_ADDRESS    3 'data'
    -0071    | GET_ELEMENT_ADDRESS_CONST          0 (flat offset)
    -0076    0 SWAP
    -0077    | SET_INDIRECT
    -0078   22 CONSTANT           14 '4'
    -0080    | GET_GLOBAL_ADDRESS    3 'data'
    -0082    | GET_ELEMENT_ADDRESS_CONST          1 (flat offset)
    -0087    0 SWAP
    -0088    | SET_INDIRECT
    -0089   23 CONSTANT           12 '5'
    -0091    | GET_GLOBAL_ADDRESS    3 'data'
    -0093    | GET_ELEMENT_ADDRESS_CONST          2 (flat offset)
    -0098    0 SWAP
    -0099    | SET_INDIRECT
    -0100   24 CONSTANT            4 '1'
    -0102    | SET_GLOBAL          7 'i'
    -0104    | GET_GLOBAL          7 'i'
    -0106    | CONSTANT            5 '3'
    -0108    | LESS_EQUAL
    -0109    | JUMP_IF_FALSE      20 (to 0132)
    -0112   25 GET_GLOBAL          7 'i'
    -0114    | GET_GLOBAL_ADDRESS    3 'data'
    -0116    | LOAD_ELEMENT_VALUE    1 (dims)
    -0118    | CALL_USER_PROC      15 'printvalue' @0038 (1 args)
    -0122   24 GET_GLOBAL          7 'i'
    -0124    | CONSTANT            4 '1'
    -0126    | ADD
    -0127    | SET_GLOBAL          7 'i'
    -0129    | JUMP              -28 (to 0104)
    -0132    1 HALT
    +--- Procedure printvalue (at 0039) ---
    +0039   13 CONSTANT            4 '1'
    +0041    | CONSTANT            9 'value='
    +0043    | GET_LOCAL           0 (slot)
    +0045    | CALL_BUILTIN_PROC   176 'write' (3 args)
    +0051   11 RETURN
    +0052   20 CONSTANT            4 '1'
    +0054    | CONSTANT           11 'double='
    +0056    | CONSTANT           12 '5'
    +0058    | CALL_USER_PROC      13 'doubleit' @0026 (1 args)
    +0062    | CALL_BUILTIN_PROC   176 'write' (3 args)
    +0068   21 CONSTANT            5 '3'
    +0070    | GET_GLOBAL_ADDRESS    3 'data'
    +0072    | GET_ELEMENT_ADDRESS_CONST          0 (flat offset)
    +0077    0 SWAP
    +0078    | SET_INDIRECT
    +0079   22 CONSTANT           14 '4'
    +0081    | GET_GLOBAL_ADDRESS    3 'data'
    +0083    | GET_ELEMENT_ADDRESS_CONST          1 (flat offset)
    +0088    0 SWAP
    +0089    | SET_INDIRECT
    +0090   23 CONSTANT           12 '5'
    +0092    | GET_GLOBAL_ADDRESS    3 'data'
    +0094    | GET_ELEMENT_ADDRESS_CONST          2 (flat offset)
    +0099    0 SWAP
    +0100    | SET_INDIRECT
    +0101   24 CONSTANT            4 '1'
    +0103    | SET_GLOBAL          7 'i'
    +0105    | GET_GLOBAL          7 'i'
    +0107    | CONSTANT            5 '3'
    +0109    | LESS_EQUAL
    +0110    | JUMP_IF_FALSE      20 (to 0133)
    +0113   25 GET_GLOBAL          7 'i'
    +0115    | GET_GLOBAL_ADDRESS    3 'data'
    +0117    | LOAD_ELEMENT_VALUE    1 (dims)
    +0119    | CALL_USER_PROC      15 'printvalue' @0039 (1 args)
    +0123   24 GET_GLOBAL          7 'i'
    +0125    | CONSTANT            4 '1'
    +0127    | ADD
    +0128    | SET_GLOBAL          7 'i'
    +0130    | JUMP              -28 (to 0105)
    +0133    1 HALT
     == End Disassembly: Pascal/UserProcCallTest ==
     
     Constants (16):\n  0000: STR   "myself"
[PASS] pascal_VMVersionQueryTest – Pascal fixture VMVersionQueryTest
[PASS] pascal_VarInitTest – Pascal fixture VarInitTest
[PASS] pascal_XorExprSuite – Pascal fixture XorExprSuite
[PASS] pascal_YyjsonBuiltinTest – Pascal fixture YyjsonBuiltinTest
[PASS] pascal_cache_staleness – Cache invalidation honours matching timestamps

Ran 114 Pascal test(s); 3 failure(s); 3 skipped

    Start 2: clike_tests
2/4 Test #2: clike_tests ......................***Failed   12.36 sec
[PASS] clike_ext_builtin_dump – clike --dump-ext-builtins validates structure
[PASS] clike_cli_version – clike -v reports latest tag
[PASS] clike_cli_dump_ast_json – clike --dump-ast-json emits JSON
[PASS] clike_cli_vm_trace – clike --vm-trace-head produces trace
[FAIL] clike_AssignExprValue – CLike fixture AssignExprValue
    stdout mismatch:
    --- /home/runner/work/pscal/pscal/Tests/clike/AssignExprValue.out	2025-11-06 20:46:36.520539188 +0000
    +++ /tmp/tmp.XacbTEFC2s	2025-11-06 20:48:03.411775493 +0000
    @@ -1,2 +0,0 @@
    -7
    -9 9
    clike run exited with 1
    stderr:
    VM Error: Array element type constant index out of range.
    [Error Location] Offset: 5, Line: 2
[PASS] clike_Bitwise – CLike fixture Bitwise
[PASS] clike_BreakContinue – CLike fixture BreakContinue
[PASS] clike_BuiltinCase – CLike fixture BuiltinCase
[PASS] clike_Casts – CLike fixture Casts
[FAIL] clike_CharArrayInit – CLike fixture CharArrayInit
    stdout mismatch:
    --- /home/runner/work/pscal/pscal/Tests/clike/CharArrayInit.out	2025-11-06 20:46:36.520539188 +0000
    +++ /tmp/tmp.QHMp42akSL	2025-11-06 20:48:04.145776159 +0000
    @@ -1 +0,0 @@
    -4 a c
    clike run exited with 1
    stderr:
    VM Error: Array element type constant index out of range.
    [Error Location] Offset: 5, Line: 2
[PASS] clike_CharByte – CLike fixture CharByte
[PASS] clike_CompoundAssign – CLike fixture CompoundAssign
[FAIL] clike_Const – CLike fixture Const
    stdout mismatch:
    --- /home/runner/work/pscal/pscal/Tests/clike/Const.out	2025-11-06 20:46:36.520539188 +0000
    +++ /tmp/tmp.3V489XTYXC	2025-11-06 20:48:04.588776563 +0000
    @@ -1,2 +0,0 @@
    -5 20
    -C
    clike run exited with 1
    stderr:
    VM Error: Array element type constant index out of range.
    [Error Location] Offset: 14, Line: 4
[PASS] clike_DivBehavior – CLike fixture DivBehavior
[PASS] clike_Exit – CLike fixture Exit
[PASS] clike_ExitCode – CLike fixture ExitCode
[PASS] clike_ExtBuiltinEnumerationTest – CLike fixture ExtBuiltinEnumerationTest
[PASS] clike_ExtBuiltinQueryTest – CLike fixture ExtBuiltinQueryTest
[PASS] clike_FileOperations – CLike fixture FileOperations
[PASS] clike_GetPIDExtensionsTest – CLike fixture GetPIDExtensionsTest
[PASS] clike_HttpFetchDataURL – CLike fixture HttpFetchDataURL
[SKIP] clike_HttpServerCases – CLike fixture HttpServerCases
    Network tests disabled (set RUN_NET_TESTS=1)
[PASS] clike_IfdefExtended – CLike fixture IfdefExtended
[PASS] clike_ImportSimple – CLike fixture ImportSimple
[PASS] clike_IncDec – CLike fixture IncDec
[PASS] clike_InitTypeError – CLike fixture InitTypeError
[PASS] clike_Int64 – CLike fixture Int64
[FAIL] clike_IntPromotionPreservesType – CLike fixture IntPromotionPreservesType
    stdout mismatch:
    --- /home/runner/work/pscal/pscal/Tests/clike/IntPromotionPreservesType.out	2025-11-06 20:46:36.520539188 +0000
    +++ /tmp/tmp.Ih8YIx8Oq4	2025-11-06 20:48:06.643772254 +0000
    @@ -1,2 +0,0 @@
    -0
    -1
    clike run exited with 1
    stderr:
    VM Error: Array element type constant index out of range.
    [Error Location] Offset: 5, Line: 2
[PASS] clike_LogicalOps – CLike fixture LogicalOps
[PASS] clike_MStreamNilComparison – CLike fixture MStreamNilComparison
[PASS] clike_MStreamWords – CLike fixture MStreamWords
[FAIL] clike_MdArraySuite – CLike fixture MdArraySuite
    stdout mismatch:
    --- /home/runner/work/pscal/pscal/Tests/clike/MdArraySuite.out	2025-11-06 20:46:36.520539188 +0000
    +++ /tmp/tmp.5jDqsoaWnd	2025-11-06 20:48:07.232769068 +0000
    @@ -1,26 +0,0 @@
    -Running pscal Multi-Dimensional Array Torture Test
    -
    ---- Testing 2D Array (Matrix) ---
    -Assigning values to matrix_a[1..3, 0..2]...
    -Assignment complete.
    -START: 2D Array Checksum after assignment: PASS
    -Verifying individual elements...
    -START: 2D Access matrix_a[1, 0]: PASS
    -START: 2D Access matrix_a[1, 2] (Edge): PASS
    -START: 2D Access matrix_a[2, 1]: PASS
    -START: 2D Access matrix_a[3, 0] (Edge): PASS
    -START: 2D Access matrix_a[3, 2] (Corner): PASS
    -START: 2D Modify/Access matrix_a[2, 1]: PASS
    -
    ---- Testing 3D Array (Cube) ---
    -Assigning values to cube_a[-1..0, 1..2, 3..4]...
    -Assignment complete.
    -START: 3D Array Checksum after assignment: PASS
    -Verifying individual elements...
    -START: 3D Access cube_a[-1, 1, 3] (Corner): PASS
    -START: 3D Access cube_a[-1, 2, 4] (Edge): PASS
    -START: 3D Access cube_a[0, 1, 3] (Edge): PASS
    -START: 3D Access cube_a[0, 2, 4] (Corner): PASS
    -START: 3D Modify/Access cube_a[0, 1, 3]: PASS
    -
    -Multi-Dimensional Array Torture Test Completed.
    clike run exited with 1
    stderr:
    VM Error: Array element type constant index out of range.
    [Error Location] Offset: 25, Line: 10
[PASS] clike_MixedCaseFunctionName – CLike fixture MixedCaseFunctionName
[PASS] clike_PathNormalize – CLike fixture PathNormalize
[PASS] clike_Pointer – CLike fixture Pointer
[FAIL] clike_PointerArrayDereference – CLike fixture PointerArrayDereference
    stdout mismatch:
    --- /home/runner/work/pscal/pscal/Tests/clike/PointerArrayDereference.out	2025-11-06 20:46:36.521539187 +0000
    +++ /tmp/tmp.3lRh5O0hvP	2025-11-06 20:48:07.821765888 +0000
    @@ -1 +0,0 @@
    -le
    clike run exited with 1
    stderr:
    VM Error: Array element type constant index out of range.
    [Error Location] Offset: 5, Line: 2
[PASS] clike_PointerTorture – CLike fixture PointerTorture
[PASS] clike_Printf64 – CLike fixture Printf64
[PASS] clike_PrintfFloatLen – CLike fixture PrintfFloatLen
[PASS] clike_PrintfIntLen – CLike fixture PrintfIntLen
[PASS] clike_PrintfIntLenMore – CLike fixture PrintfIntLenMore
[PASS] clike_PrintfTernary – CLike fixture PrintfTernary
[PASS] clike_RealIntAssignmentTest – CLike fixture RealIntAssignmentTest
[PASS] clike_RealIntConversionTest – CLike fixture RealIntConversionTest
[PASS] clike_RealTimeClockExtBuiltinTest – CLike fixture RealTimeClockExtBuiltinTest
[PASS] clike_RecursiveMutex – CLike fixture RecursiveMutex
[PASS] clike_ScanfFloat – CLike fixture ScanfFloat
[PASS] clike_ScanfString – CLike fixture ScanfString
[PASS] clike_Shifts – CLike fixture Shifts
[PASS] clike_ShortCircuit – CLike fixture ShortCircuit
[FAIL] clike_Sizeof – CLike fixture Sizeof
    stdout mismatch:
    --- /home/runner/work/pscal/pscal/Tests/clike/Sizeof.out	2025-11-06 20:46:36.521539187 +0000
    +++ /tmp/tmp.P3TvuO1DkN	2025-11-06 20:48:10.157753260 +0000
    @@ -1 +0,0 @@
    -4 16
    clike run exited with 1
    stderr:
    VM Error: Array element type constant index out of range.
    [Error Location] Offset: 5, Line: 2
[FAIL] clike_SizeofPartialArrayAccess – CLike fixture SizeofPartialArrayAccess
    stdout mismatch:
    --- /home/runner/work/pscal/pscal/Tests/clike/SizeofPartialArrayAccess.out	2025-11-06 20:46:36.521539187 +0000
    +++ /tmp/tmp.qVnwYLXxtH	2025-11-06 20:48:10.308752443 +0000
    @@ -1 +0,0 @@
    -20
    clike run exited with 1
    stderr:
    VM Error: Array element type constant index out of range.
    [Error Location] Offset: 5, Line: 2
[SKIP] clike_SocketBind – CLike fixture SocketBind
    Network tests disabled (set RUN_NET_TESTS=1)
[SKIP] clike_SocketBindAddr – CLike fixture SocketBindAddr
    Network tests disabled (set RUN_NET_TESTS=1)
[SKIP] clike_SocketSendReceive – CLike fixture SocketSendReceive
    Network tests disabled (set RUN_NET_TESTS=1)
[PASS] clike_SqliteSmokeTest – CLike fixture SqliteSmokeTest
[PASS] clike_StringIndexBounds – CLike fixture StringIndexBounds
[PASS] clike_StructParam – CLike fixture StructParam
[PASS] clike_StructReturn – CLike fixture StructReturn
[PASS] clike_Switch – CLike fixture Switch
[FAIL] clike_ThreadJoinArrayExpr – CLike fixture ThreadJoinArrayExpr
    stdout mismatch:
    --- /home/runner/work/pscal/pscal/Tests/clike/ThreadJoinArrayExpr.out	2025-11-06 20:46:36.522539186 +0000
    +++ /tmp/tmp.blDABWuPVz	2025-11-06 20:48:11.202751686 +0000
    @@ -1 +0,0 @@
    -done
    clike run exited with 1
    stderr:
    VM Error: Array element type constant index out of range.
    [Error Location] Offset: 6, Line: 4
[PASS] clike_ThreadMutex – CLike fixture ThreadMutex
[PASS] clike_ThreadSpawnJoin – CLike fixture ThreadSpawnJoin
[PASS] clike_ThreadSpawnJoinCase – CLike fixture ThreadSpawnJoinCase
[PASS] clike_ThreadSpawnJoinDebug – CLike fixture ThreadSpawnJoinDebug
[PASS] clike_Topper – CLike fixture Topper
[PASS] clike_TypeError – CLike fixture TypeError
[PASS] clike_VMVersionQueryTest – CLike fixture VMVersionQueryTest
[PASS] clike_Xor – CLike fixture Xor
[PASS] clike_YyjsonBuiltinTest – CLike fixture YyjsonBuiltinTest
[PASS] clike_atoi – CLike fixture atoi
[PASS] clike_double – CLike fixture double
[PASS] clike_dowhile – CLike fixture dowhile
[PASS] clike_float – CLike fixture float
[PASS] clike_for – CLike fixture for
[PASS] clike_for_decl – CLike fixture for_decl
[PASS] clike_function – CLike fixture function
[SKIP] clike_graphics – CLike fixture graphics
    Graphics builtins unavailable
[PASS] clike_if – CLike fixture if
[PASS] clike_if_block_decl – CLike fixture if_block_decl
[PASS] clike_itoa – CLike fixture itoa
[PASS] clike_long – CLike fixture long
[PASS] clike_printf – CLike fixture printf
[PASS] clike_random – CLike fixture random
[PASS] clike_scanf – CLike fixture scanf
[PASS] clike_string – CLike fixture string
[PASS] clike_strlen – CLike fixture strlen
[PASS] clike_tb – CLike fixture tb
[PASS] clike_tcs – CLike fixture tcs
[FAIL] clike_tid – CLike fixture tid
    stdout mismatch:
    --- /home/runner/work/pscal/pscal/Tests/clike/tid.out	2025-11-06 20:46:36.523539186 +0000
    +++ /tmp/tmp.vObYRjWEhb	2025-11-06 20:48:15.305759349 +0000
    @@ -1,4 +0,0 @@
    -myVar after ++: 11
    -myVar after -- twice: 9
    -myVar after + step: 14
    -myArray[1] after ++: 201
    clike run exited with 1
    stderr:
    VM Error: Array element type constant index out of range.
    [Error Location] Offset: 9, Line: 3
    ```

@emkey1
Copy link
Owner Author

emkey1 commented Nov 6, 2025

Aborted. Removed 870cfe8, which caused the issue in the firstplace.

@emkey1 emkey1 closed this Nov 6, 2025
@emkey1 emkey1 deleted the codex/fix-vm-error-inc_local-in-3d-example branch November 7, 2025 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants