Changeset fead41a for tests


Ignore:
Timestamp:
Jan 8, 2017, 3:19:02 PM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, sampler, yinfft+
Children:
59fe157
Parents:
32da451
Message:

tests/src/utils/test-log.c: improve messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/src/utils/test-log.c

    r32da451 rfead41a  
    1010void logging(int level, const char_t *message, void *data) {
    1111  FILE *out;
    12   fprintf(stdout, "using custom logging function\n");
     12  //fprintf(stdout, "using custom logging function\n");
    1313  if (level == AUBIO_LOG_ERR) {
    1414    out = stderr;
     
    3333  fprintf(stdout, "### testing with one custom function\n");
    3434  aubio_log_set_function(logging, (void *)hdr);
    35   AUBIO_ERR("testing recustom AUBIO_LOG_ERR\n");
    36   AUBIO_INF("testing recustom AUBIO_LOG_INF\n");
    37   AUBIO_WRN("testing recustom AUBIO_LOG_WRN\n");
    38   AUBIO_MSG("testing recustom AUBIO_LOG_MSG\n");
    39   AUBIO_DBG("testing recustom AUBIO_LOG_DBG\n");
     35  AUBIO_ERR("testing custom set_function AUBIO_LOG_ERR\n");
     36  AUBIO_INF("testing custom set_function AUBIO_LOG_INF\n");
     37  AUBIO_WRN("testing custom set_function AUBIO_LOG_WRN\n");
     38  AUBIO_MSG("testing custom set_function AUBIO_LOG_MSG\n");
     39  AUBIO_DBG("testing custom set_function AUBIO_LOG_DBG\n");
    4040
    4141  fprintf(stdout, "### testing resetted logging\n");
    4242  aubio_log_reset();
    43   AUBIO_ERR("testing uncustom AUBIO_LOG_ERR\n");
    44   AUBIO_INF("testing uncustom AUBIO_LOG_INF\n");
    45   AUBIO_WRN("testing uncustom AUBIO_LOG_WRN\n");
    46   AUBIO_MSG("testing uncustom AUBIO_LOG_MSG\n");
    47   AUBIO_DBG("testing uncustom AUBIO_LOG_DBG\n");
     43  AUBIO_ERR("testing again normal AUBIO_LOG_ERR\n");
     44  AUBIO_INF("testing again normal AUBIO_LOG_INF\n");
     45  AUBIO_WRN("testing again normal AUBIO_LOG_WRN\n");
     46  AUBIO_MSG("testing again normal AUBIO_LOG_MSG\n");
     47  AUBIO_DBG("testing again normal AUBIO_LOG_DBG\n");
    4848
    4949  fprintf(stdout, "### testing per level customization\n");
     
    5151  aubio_log_set_level_function(AUBIO_LOG_WRN, logging, NULL);
    5252  aubio_log_set_level_function(AUBIO_LOG_MSG, logging, (void *)hdr);
    53   AUBIO_ERR("testing custom AUBIO_LOG_ERR\n");
    54   AUBIO_INF("testing custom AUBIO_LOG_INF\n");
    55   AUBIO_WRN("testing custom AUBIO_LOG_WRN with data=NULL\n");
    56   AUBIO_MSG("testing custom AUBIO_LOG_MSG\n");
    57   AUBIO_DBG("testing uncustomized AUBIO_LOG_DBG\n");
     53  AUBIO_ERR("testing custom set_level_function AUBIO_LOG_ERR\n");
     54  AUBIO_INF("testing again normal AUBIO_LOG_INF\n");
     55  AUBIO_WRN("testing custom set_level_function AUBIO_LOG_WRN with data=NULL\n");
     56  AUBIO_MSG("testing custom set_level_function AUBIO_LOG_MSG\n");
     57  AUBIO_DBG("testing again normal AUBIO_LOG_DBG\n");
    5858
    5959  return 0;
Note: See TracChangeset for help on using the changeset viewer.