Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(z80asm) test fails in SNAPcraft #2514

Closed
pauloscustodio opened this issue Mar 29, 2024 · 1 comment
Closed

(z80asm) test fails in SNAPcraft #2514

pauloscustodio opened this issue Mar 29, 2024 · 1 comment

Comments

@pauloscustodio
Copy link
Member

pauloscustodio commented Mar 29, 2024

Test option_debug.t compiles a simple C program with zcc and checks the map file. Somewhow the contents of the map file are different when building under SNAPcraft, causing the test to fail. This does not happen in the github workflows, where all tests pass.

#   at t/option_debug.t line 84.
#          got: '+---+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+--+-------------------------------------------------------------------------------------------------------------------------------------+
# *  1|__ASM_LINE_2_test_5ft_5foption_5fdebug1_2easm = $80D1 ; addr, local, , test_t_option_debug1_asm, , test_t_option_debug1.asm:2                                        * 1|_main                           = $8287 ; addr, public, , test_t_option_debug_c, code_compiler, test_t_option_debug.c::main::0::1:2  *
# *  2|__C_LINE_0_test_5ft_5foption_5fdebug_2ec = $80D1 ; addr, local, , test_t_option_debug_c, , test_t_option_debug.c:0                                                   *  |                                                                                                                                     |
# *  3|__C_LINE_0_test_5ft_5foption_5fdebug_2eh = $80D1 ; addr, local, , test_t_option_debug_c, , test_t_option_debug.h:0                                                   *  |                                                                                                                                     |
# *  4|__C_LINE_1_test_5ft_5foption_5fdebug_2ec = $80D1 ; addr, local, , test_t_option_debug_c, , test_t_option_debug.c:1                                                   *  |                                                                                                                                     |
# *  5|__C_LINE_2_test_5ft_5foption_5fdebug_2ec = $80D1 ; addr, local, , test_t_option_debug_c, , test_t_option_debug.c:2                                                   *  |                                                                                                                                     |
# *  6|__C_LINE_2_test_5ft_5foption_5fdebug_2ec_3a_3amain_3a_3a0_3a_3a1 = $82A0 ; addr, local, , test_t_option_debug_c, code_compiler, test_t_option_debug.c::main::0::1:2  *  |                                                                                                                                     |
# *  7|__C_LINE_3_test_5ft_5foption_5fdebug_2ec_3a_3amain_3a_3a1_3a_3a2 = $82A3 ; addr, local, , test_t_option_debug_c, code_compiler, test_t_option_debug.c::main::1::2:3  *  |                                                                                                                                     |
# *  8|__C_LINE_3_test_5ft_5foption_5fdebug_2eh = $80D1 ; addr, local, , test_t_option_debug_c, , test_t_option_debug.h:3                                                   *  |                                                                                                                                     |
# *  9|__C_LINE_6_test_5ft_5foption_5fdebug_2eh = $80D1 ; addr, local, , test_t_option_debug_c, , test_t_option_debug.h:6                                                   *  |                                                                                                                                     |
# * 10|_main                           = $82A0 ; addr, public, , test_t_option_debug_c, code_compiler, test_t_option_debug.c::main::0::1:2                                  *  |                                                                                                                                     |
# | 11|_one                            = $80D1 ; addr, public, , test_t_option_debug1_asm, , test_t_option_debug1.asm:2                                                     | 2|_one                            = $80D1 ; addr, public, , test_t_option_debug1_asm, , test_t_option_debug1.asm:2                     |
# +---+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+--+-------------------------------------------------------------------------------------------------------------------------------------+

Will test an un-filtered map file to check if I can find the reason.

@pauloscustodio
Copy link
Member Author

pauloscustodio commented Mar 29, 2024

The un-filtered map file has hundreds of lines of all the C API calls.
Skip test in if environment variable SNAPcraft exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant