Changeset 5c849af for tests


Ignore:
Timestamp:
Dec 16, 2018, 2:01:00 AM (12 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/timestretch, master
Children:
46a1e34
Parents:
26c6ee4
Message:

[tests] use double quote to test \0 as a string

Prevents clang throwing an error, since '\0' is rightfully treated as a
single character.

See this explanation by Stephen J. Butler:
https://lists.macports.org/pipermail/macports-dev/2016-June/033168.html

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/src/io/test-source.c

    r26c6ee4 r5c849af  
    7171
    7272  if (new_aubio_source(0,    samplerate, hop_size)) return 1;
    73   if (new_aubio_source('\0', samplerate, hop_size)) return 1;
     73  if (new_aubio_source("\0", samplerate, hop_size)) return 1;
    7474  if (new_aubio_source(uri,          -1, hop_size)) return 1;
    7575  if (new_aubio_source(uri,           0,        0)) return 1;
Note: See TracChangeset for help on using the changeset viewer.