2008年6月5日木曜日

【道具箱】第7章 CUnit

こつこつ。


  • CUnitが入っていないのでインストール。バージョンは2.1.0。これまた大分進んでいるのが不安。
  • makeしたら、CUnitのヘッダがエラーを出す。

    In file included from /usr/local/include/CUnit/CUnit.h:102,
    from /usr/local/include/CUnit/TestDB.h:59,
    from nldetecttest.c:5:
    /usr/local/include/CUnit/TestRun.h:75: error: syntax error before ‘CU_pTest’
    /usr/local/include/CUnit/TestRun.h:75: warning: no semicolon at end of struct or union
    /usr/local/include/CUnit/TestRun.h:76: warning: data definition has no type or storage class
    /usr/local/include/CUnit/TestRun.h:81: error: syntax error before ‘}’ token
    /usr/local/include/CUnit/TestRun.h:81: warning: data definition has no type or storage class
    /usr/local/include/CUnit/TestRun.h:82: error: syntax error before ‘*’ token
    /usr/local/include/CUnit/TestRun.h:82: warning: data definition has no type or storage class
    /usr/local/include/CUnit/TestRun.h:105: error: syntax error before ‘pTest’
    /usr/local/include/CUnit/TestRun.h:114: error: syntax error before ‘pTest’
    /usr/local/include/CUnit/TestRun.h:122: error: syntax error before ‘pFailure’
    /usr/local/include/CUnit/TestRun.h:128: error: syntax error before ‘pSuite’
    /usr/local/include/CUnit/TestRun.h:134: error: syntax error before ‘pSuite’
    /usr/local/include/CUnit/TestRun.h:151: error: syntax error before ‘pSuite’
    /usr/local/include/CUnit/TestRun.h:152: error: syntax error before ‘pSuite’
    /usr/local/include/CUnit/TestRun.h:163: error: syntax error before ‘CU_get_failure_list’
    /usr/local/include/CUnit/TestRun.h:163: warning: data definition has no type or storage class
    /usr/local/include/CUnit/TestRun.h:167: error: syntax error before ‘CU_get_current_suite’
    /usr/local/include/CUnit/TestRun.h:167: warning: data definition has no type or storage class
    /usr/local/include/CUnit/TestRun.h:168: error: syntax error before ‘CU_get_current_test’
    /usr/local/include/CUnit/TestRun.h:168: warning: data definition has no type or storage class

    ということで、一旦玉砕。

0 件のコメント: