Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions ex19/ex19.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#include "dbg.h"
#include <stdlib.h>
#include <stdio.h>
Expand Down Expand Up @@ -36,7 +35,7 @@ int test_check(char *file_name)
char *block = NULL;

block = malloc(100);
check_mem(block); // should work
check_mem(block); // should work

input = fopen(file_name, "r");
check(input, "Failed to open %s.", file_name);
Expand Down Expand Up @@ -104,7 +103,7 @@ int main(int argc, char *argv[])
test_log_warn();
test_log_info();

check(test_check("ex20.c") == 0, "failed with ex20.c");
check(test_check("ex19.c") == 0, "failed with ex19.c");
check(test_check(argv[1]) == -1, "failed with argv");
check(test_sentinel(1) == 0, "test_sentinel failed.");
check(test_sentinel(100) == -1, "test_sentinel failed.");
Expand Down