Changeset 2206 in MondoRescue for branches/2.2.9/mondo/test/test-mountlist.c


Ignore:
Timestamp:
May 14, 2009, 4:23:28 AM (11 years ago)
Author:
Bruno Cornec
Message:

-Improvements in tests for mountlist

  • escape remaining chars [{&...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/test/test-mountlist.c

    r2204 r2206  
    4545    asprintf(&MONDO_LOGFILE,"/tmp/mrtest-mountlist.log");
    4646
     47    /* Globals */
    4748    g_loglevel = 99;
    4849    g_text_mode = FALSE;
     50    g_main_pid = getpid();
     51
    4952    if (!(mountlist = malloc(sizeof(struct mountlist_itself)))) {
    5053        fatal_error("Cannot malloc mountlist");
     
    5760setup_newt_stuff();
    5861asprintf(&g_mountlist_fname, "/tmp/mountlist.txt");
     62log_it("before mountlist");
    5963load_mountlist(mountlist, g_mountlist_fname);
     64log_it("after mountlist");
    6065resize_mountlist_proportionately_to_suit_new_drives(mountlist);
     66log_it("after resize_mountlist_proportionately_to_suit_new_drives");
    6167load_raidtab_into_raidlist(raidlist, RAIDTAB_FNAME);
     68log_it("after load_raidtab_into_raidlist");
    6269edit_mountlist(g_mountlist_fname, mountlist, raidlist);
     70log_it("after edit_mountlist");
    6371exit(0);
    6472}
Note: See TracChangeset for help on using the changeset viewer.