Changeset 2234 in MondoRescue
- Timestamp:
- Jun 19, 2009, 6:04:22 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/test/test-mountlist.c
r2211 r2234 48 48 void main() { 49 49 50 struct mountlist_itself *mountlist = NULL; 51 struct raidlist_itself *raidlist; 50 struct mountlist_itself *mountlist = NULL; 51 struct raidlist_itself *raidlist; 52 char *tmpA = NULL; 53 char *tmpB = NULL; 54 char *tmpC = NULL; 55 bool ret = FALSE; 52 56 53 57 mr_asprintf(&MONDO_LOGFILE,"/tmp/mrtest-mountlist.log"); 54 58 55 56 57 58 59 /* Globals */ 60 g_loglevel = 99; 61 g_text_mode = FALSE; 62 g_main_pid = getpid(); 59 63 60 61 62 63 64 65 66 64 if (!(mountlist = malloc(sizeof(struct mountlist_itself)))) { 65 fatal_error("Cannot malloc mountlist"); 66 } 67 if (!(raidlist = malloc(sizeof(struct raidlist_itself)))) { 68 fatal_error("Cannot malloc raidlist"); 69 } 70 malloc_libmondo_global_strings(); 67 71 68 72 setup_newt_stuff(); … … 77 81 edit_mountlist(g_mountlist_fname, mountlist, raidlist); 78 82 log_it("after edit_mountlist"); 83 84 mr_asprintf(&tmpA, "%s", " "); 85 mr_asprintf(&tmpB, "%s", " "); 86 mr_asprintf(&tmpC, "%s", " "); 87 ret = evaluate_mountlist(mountlist, tmpA, tmpB, tmpC); 88 log_it("after evaluate_mountlist"); 79 89 exit(0); 80 90 }
Note:
See TracChangeset
for help on using the changeset viewer.