Changeset 1178 in MondoRescue for branches/stable/mondo/src/test
- Timestamp:
- Feb 17, 2007, 2:27:26 AM (18 years ago)
- Location:
- branches/stable/mondo/src/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/test/test-mem.c
r1140 r1178 1 1 #include <stdio.h> 2 2 #include <stdlib.h> 3 #include <string.h> 3 4 #include <assert.h> 4 5 … … 31 32 mr_free(str); 32 33 34 printf("*** Test with mr_strcat\n"); 35 mr_asprintf(&str,"Another Chain"); 36 mr_strcat(str," of trust"); 37 printf("Result: %s\n",str); 38 mr_free(str); 39 33 40 printf("*** Test with mr_getline/mr_free\n"); 34 41 fd = mr_fopen("/etc/passwd","r"); -
branches/stable/mondo/src/test/test-mem.res
r1134 r1178 1 *** Test with mr_ free1 *** Test with mr_malloc/mr_free 2 2 pointer is NOT null 3 3 pointer is null 4 *** Test with mr_asprintf/mr_free 5 Result: Chain of trust 6 *** Test with mr_strcat 7 Result: Another Chain of trust 8 *** Test with mr_getline/mr_free 9 1st Result: root:x:0:0:root:/root:/bin/bash 10 2nd Result: bin:x:1:1:bin:/bin:/bin/sh 11 3rd Result: another line 4 12 *** Test with NULL 5 13 pointer is null
Note:
See TracChangeset
for help on using the changeset viewer.