1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-28 22:30:12 +00:00
cc65/test
Greg King 8b42f570e9 Fixed code that caused a seg-fault after parsing a (deferred) post-count argument followed by a (nested) function-call argument.
The old broken code defers the count until the end of the (parent function's) argument list.  But, a nested function call clears the pointer to the deferred type.  That leads to an access violation.
The new code defers only until the end of each argument.  Fixes #1320.
2020-11-20 17:45:14 -05:00
..
asm Fixed typo 2020-11-19 22:02:07 +01:00
dasm Streamlined some makefiles. 2020-11-17 13:34:22 -05:00
err move testcase for issue #1320 into test/misc 2020-11-20 17:25:10 +01:00
misc Fixed code that caused a seg-fault after parsing a (deferred) post-count argument followed by a (nested) function-call argument. 2020-11-20 17:45:14 -05:00
ref 'test/isequal.c' doesn't change. Don't rebuild it for each test subdirectory. 2020-11-17 13:40:36 -05:00
todo
val Fixed code that caused a seg-fault after parsing a (deferred) post-count argument followed by a (nested) function-call argument. 2020-11-20 17:45:14 -05:00
.gitignore
CPYRIGHT.LCC
isequal.c
Makefile
readme.txt

This directory contains test code for automatic regression testing of the CC65
compiler.


/val  - The bulk of tests are contained here, individual tests should exit with
        an exit code of EXIT_SUCCESS when they pass, or EXIT_FAILURE on error.

/ref  - These tests produce output that must be compared with reference output.

/err  - contains tests that MUST NOT compile

/todo - These tests fail due to open compiler issues.

        The makefile in this directory _expects_ the tests to fail, because of
        that when an issue was fixed it will break the CI. The test should get 
        moved to /val in the PR fixing the issue, which will make CI pass again.
        No changes to makefiles are required!

/asm  - contains the assembler regression tests

/dasm - contains the disassembler regression tests

/misc - a few tests that need special care of some sort

        Tests that (incorrectly) fail to compile and other tests that fail and
        do NOT return an exit code are collected here. The makefile _expects_
        those tests to fail, so when an issue is fixed it will break the CI.
        When this happens, the PR fixing the issue should also "invert" the
        failing condition in the makefile by adding a $(NOT) before the
        offending line (or removing it when it is already there), which will
        make the CI pass again. The test should then be moved elsewhere later,
        which will require additional changes to the makefile(s).


To run the tests use "make" in this (top) directory, the makefile should exit
with no error.

When a test failed you can use "make continue" to run further tests.

--------------------------------------------------------------------------------

TODO:

- reduce usage of "common.h" to a minimum
- convert more tests from using reference output to returning an exit code