Skip to content

Commit fe50d5b

Browse files
authored
Merge pull request #583 from boriel/test/fix_testing
test: fix testing glob path!
2 parents 1a59f1a + 20d8aa9 commit fe50d5b

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

tests/functional/test_basic.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
TEST_PATH = os.path.dirname(os.path.realpath(__file__))
1111

1212

13-
@pytest.mark.parametrize("fname", [os.path.join(TEST_PATH, f) for f in glob.glob("**/*.bas", recursive=True)])
13+
@pytest.mark.parametrize(
14+
"fname", [os.path.join(TEST_PATH, f) for f in glob.glob(os.path.join(TEST_PATH, "**", "*.bas"), recursive=True)]
15+
)
1416
@pytest.mark.timeout(15)
1517
def test_basic(fname):
1618
test.main(["-d", fname])

tests/functional/zx48k/spfill.asm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
ei
6262
ret
6363
_SPFill:
64-
#line 12 "/zxbasic/src/arch/zx48k/library/SP/Fill.bas"
64+
#line 11 "/zxbasic/src/arch/zx48k/library/SP/Fill.bas"
6565
push namespace core
6666
PROC
6767
LOCAL SPPFill
@@ -1404,7 +1404,7 @@ USR_STR:
14041404
jr z, USR_ERROR ; a$ = "" => Invalid Arg
14051405
inc hl
14061406
ld a, (hl) ; Only the 1st char is needed
1407-
and 11011111b ; Convert it to UPPER CASE
1407+
and %11011111 ; Convert it to UPPER CASE
14081408
sub 144 ; CODE(UDG "A")
14091409
jr nc, CONT
14101410
add a, 144 ; It was a letter

tests/functional/zx48k/usr0.asm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ __PRINT_TABLE: ; Jump table for 0 .. 22 codes
10161016
DW __PRINT_TAB ; 23 TAB
10171017
ENDP
10181018
pop namespace
1019-
#line 25 "usr0.bas"
1019+
#line 25 "zx48k/usr0.bas"
10201020
#line 1 "/zxbasic/src/arch/zx48k/library-asm/printu16.asm"
10211021
#line 1 "/zxbasic/src/arch/zx48k/library-asm/printi16.asm"
10221022
#line 1 "/zxbasic/src/arch/zx48k/library-asm/printnum.asm"
@@ -1164,7 +1164,7 @@ __PRINTU_LOOP:
11641164
ENDP
11651165
pop namespace
11661166
#line 2 "/zxbasic/src/arch/zx48k/library-asm/printu16.asm"
1167-
#line 26 "usr0.bas"
1167+
#line 26 "zx48k/usr0.bas"
11681168
#line 1 "/zxbasic/src/arch/zx48k/library-asm/usr_str.asm"
11691169
; This function just returns the address of the UDG of the given str.
11701170
; If the str is EMPTY or not a letter, 0 is returned and ERR_NR set
@@ -1454,7 +1454,7 @@ USR_STR:
14541454
jr z, USR_ERROR ; a$ = "" => Invalid Arg
14551455
inc hl
14561456
ld a, (hl) ; Only the 1st char is needed
1457-
and 11011111b ; Convert it to UPPER CASE
1457+
and %11011111 ; Convert it to UPPER CASE
14581458
sub 144 ; CODE(UDG "A")
14591459
jr nc, CONT
14601460
add a, 144 ; It was a letter
@@ -1488,5 +1488,5 @@ USR_ERROR:
14881488
ret
14891489
ENDP
14901490
pop namespace
1491-
#line 27 "usr0.bas"
1491+
#line 27 "zx48k/usr0.bas"
14921492
END

0 commit comments

Comments
 (0)