Browse Source

Minor bug caught, forgot to return exit code from test_end()

Luiserebii 11 months ago
parent
commit
c0ef33dd73
Signed by: Luiserebii <luis@serebii.io> GPG Key ID: 525A84BC981B7D3E
2 changed files with 7 additions and 0 deletions
  1. 1
    0
      README.md
  2. 6
    0
      src/mintx86asm32.s

+ 1
- 0
README.md View File

@@ -1,5 +1,6 @@
1 1
 # Mint-x86asm32
2 2
 ![GitHub](https://img.shields.io/github/license/Luiserebii/Mint-x86asm32?color=222222)
3
+[![CircleCI](https://circleci.com/gh/Luiserebii/Mint-x86asm32.svg?style=svg)](https://circleci.com/gh/Luiserebii/Mint-x86asm32)
3 4
 
4 5
 A minimal test framework for x86 ASM (32-bit).
5 6
 

+ 6
- 0
src/mintx86asm32.s View File

@@ -575,6 +575,9 @@ test_end:
575 575
 	addl $4, %esp
576 576
 	call test_print_success_line
577 577
 
578
+	# Return 0 exit code
579
+	movl $0, %eax	
580
+
578 581
 	jmp test_end_end
579 582
 
580 583
 test_end_fail:
@@ -592,6 +595,9 @@ test_end_fail:
592 595
 	pushl $buff_m1
593 596
 	call test_print_fail_line
594 597
 
598
+	# Return number of tests failed in exit code
599
+	movl num_f, %eax
600
+
595 601
 test_end_end:
596 602
 	movl %ebp, %esp
597 603
 	popl %ebp

Loading…
Cancel
Save