Changeset 782 for libcaca/trunk/cpp


Ignore:
Timestamp:
Apr 17, 2006, 12:44:40 PM (14 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Forgot a test on Caca() instantiation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cpp/cpptest.cpp

    r781 r782  
    3232
    3333    try {
    34     qq = new Cucul();
     34        qq = new Cucul();
    3535    }
    3636    catch (int e) {
     
    3838        return -1;
    3939    }
    40 
    41     kk = new Caca(qq);
    4240   
    43 
     41    try {
     42        kk = new Caca(qq);
     43    }
     44    catch(int e) {
     45        cerr << "Error while attaching cucul to caca (" << e << ")" << endl;
     46        return -1;
     47    }
    4448
    4549    qq->set_color(CUCUL_COLOR_LIGHTMAGENTA, CUCUL_COLOR_BLACK);
Note: See TracChangeset for help on using the changeset viewer.