diff options
author | Oskar <> | 2024-03-22 17:33:55 +0100 |
---|---|---|
committer | Oskar <> | 2024-03-22 17:33:55 +0100 |
commit | eb0556f79fec4b7faaa374c702aa78bceb089334 (patch) | |
tree | ee1fd3c27589d74df70e76eed7647fb5a5b81e81 | |
parent | 6f162676864f6972c302ecab71e44149fa039551 (diff) |
Fixed some more stuff
-rw-r--r-- | i_validation.c | 8 | ||||
-rw-r--r-- | test/Makefile | 13 | ||||
-rw-r--r-- | test/validate_check_imm.c | 2 | ||||
-rw-r--r-- | test/validate_check_p_m.c | 2 | ||||
-rw-r--r-- | test/validate_plus_continue_tests.c | 2 |
5 files changed, 21 insertions, 6 deletions
diff --git a/i_validation.c b/i_validation.c index a21dd48..f032131 100644 --- a/i_validation.c +++ b/i_validation.c @@ -96,6 +96,8 @@ int validate_plus_continue(char *smode_buf) { // if vcpm returns _PLUS_CONTINUE } }//outer nested loop + return 0; // remove, its just here to make the compiler not output a bunch of warnings + } int validate_imm_numbers(char *smode_buf) { @@ -131,6 +133,8 @@ int validate_imm_numbers(char *smode_buf) { }//outer nested loop + return 0; // remove, its just here to make the compiler not output a bunch of warnings + } int validate_L(char *smode_buf) { @@ -153,10 +157,12 @@ int validate_L(char *smode_buf) { validate_decision = validate_check_p_m(smode_buf); - + printf("%i\n", validate_decision); // remove, its just here to make the compiler not output a bunch of warnings // this below will become validate_imm_numbers or something + return 0; // remove, its just here to make the compiler not output a bunch of warnings + } int validate_N(char *smode_buf) { diff --git a/test/Makefile b/test/Makefile index 3bdbc68..0e0e3c4 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,4 +1,7 @@ MAKEFLAGS += -s +CFLAGS_ALLTESTS=-fsanitize=address -Wfatal-errors -Wall -Wextra -g +CFLAGS_SMODE=-fsanitize=address -Wfatal-errors -Wall -Werror -Wextra -g +CC=gcc all: 7ed-TESTING 7ed-TESTING: @@ -17,13 +20,13 @@ clean: smode: echo "CC input.c ---> smode" - cd .. && gcc -Wfatal-errors -Wall -Werror -Wextra -g -fsanitize=address input.c i_validation.c -o test/smode + cd .. && $(CC) $(CFLAGS_SMODE) input.c i_validation.c -o test/smode alltests: cd .. && make tests - gcc validate_check_p_m.c ../i_validation.c -o vcpm + $(CC) $(CFLAGS_ALLTESTS) validate_check_p_m.c ../i_validation.c -o vcpm echo "CC ---> vcpm" - gcc validate_check_imm.c ../i_validation.c -o vcimm + $(CC) $(CFLAGS_ALLTESTS) validate_check_imm.c ../i_validation.c -o vcimm echo "CC ---> vcimm" - gcc validate_plus_continue_tests.c ../i_validation.c -o vpct - echo "CC ---> vpct"
\ No newline at end of file + $(CC) $(CFLAGS_ALLTESTS) validate_plus_continue_tests.c ../i_validation.c -o vpct + echo "CC ---> vpct" diff --git a/test/validate_check_imm.c b/test/validate_check_imm.c index 57c0cdb..789cf70 100644 --- a/test/validate_check_imm.c +++ b/test/validate_check_imm.c @@ -25,4 +25,6 @@ int main () { printf("valid plusonly\n"); } + return 0; + }
\ No newline at end of file diff --git a/test/validate_check_p_m.c b/test/validate_check_p_m.c index 5a4c135..fe54bd9 100644 --- a/test/validate_check_p_m.c +++ b/test/validate_check_p_m.c @@ -32,4 +32,6 @@ int main () { printf("valid\n"); } + return 0; + }
\ No newline at end of file diff --git a/test/validate_plus_continue_tests.c b/test/validate_plus_continue_tests.c index 6817203..b8c9769 100644 --- a/test/validate_plus_continue_tests.c +++ b/test/validate_plus_continue_tests.c @@ -25,4 +25,6 @@ int main () { printf("valid\n"); } + return 0; + }
\ No newline at end of file |