taglib/tests
Sergei Trofimovich 0b583bafd0 taglib: fix test build failure on powerpc/c++11 (#834)
powerpc is a platform with 'char' == 'unsigned char'.
As a result '-1' is not expressible in char and build fails as:

```
    # '-funsigned-char' to force test build failure on other platforms
    $ cmake .. -DBUILD_TESTS=YES -DCMAKE_CXX_FLAGS="-O2 -funsigned-char" -DCMAKE_C_FLAGS="-O2 -funsigned-char"
    ...
    $ make check
    tests/test_synchdata.cpp: In member function 'void TestID3v2SynchData::testToUIntBroken()':
    tests/test_synchdata.cpp:78:33: error: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing]
     char data[] = { 0, 0, 0, -1 };
                                 ^
```

The fix is to expliticly cast -1 to 'char'.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2017-09-18 20:06:55 -05:00
..
data Remove a duplicate test file. 2017-01-27 22:10:02 +09:00
CMakeLists.txt Ogg Speex: AudioProperties improvements 2015-06-18 17:23:03 +09:00
main.cpp Correct the license information. 2016-02-06 01:27:36 +09:00
test_aiff.cpp Correct the license information. 2016-02-06 01:27:36 +09:00
test_ape.cpp Correct the license information. 2016-02-06 01:27:36 +09:00
test_apetag.cpp Check invalid Unicode APE keys properly. 2016-11-09 00:29:03 +09:00
test_asf.cpp Add a common function to generate a long string to test. 2016-10-31 20:01:52 +09:00
test_bytevector.cpp Rewrite ByteVector::replace() to run in O(n) time. 2016-12-05 11:02:59 +09:00
test_bytevectorlist.cpp Correct the license information. 2016-02-06 01:27:36 +09:00
test_bytevectorstream.cpp Fix defect in ByteVectorStream::seek when Position==End. 2016-09-15 16:30:16 +02:00
test_file.cpp Add a test for File::truncate(). 2016-10-27 15:15:22 +09:00
test_fileref.cpp Restore FileRef::create() in order not to change the previous behavior. 2017-06-06 09:17:34 +09:00
test_flac.cpp Be tolerant of empty FLAC seektable blocks. 2017-01-10 00:11:13 +09:00
test_flacpicture.cpp Correct the license information. 2016-02-06 01:27:36 +09:00
test_flacunknownmetadatablock.cpp Correct the license information. 2016-02-06 01:27:36 +09:00
test_id3v1.cpp Correct the license information. 2016-02-06 01:27:36 +09:00
test_id3v2.cpp Fix memory leaks in a test. 2017-05-26 16:49:36 +09:00
test_info.cpp Correct the license information. 2016-02-06 01:27:36 +09:00
test_it.cpp Correct the license information. 2016-02-06 01:27:36 +09:00
test_list.cpp Separate some tests to make them more specific. 2016-11-09 15:51:33 +09:00
test_map.cpp Separate some tests to make them more specific. 2016-11-09 15:51:33 +09:00
test_mod.cpp Correct the license information. 2016-02-06 01:27:36 +09:00
test_mp4.cpp Merge pull request #765 from TsudaKageyu/zero-length-atom 2016-11-08 21:12:47 +09:00
test_mp4coverart.cpp Correct the license information. 2016-02-06 01:27:36 +09:00
test_mp4item.cpp Correct the license information. 2016-02-06 01:27:36 +09:00
test_mpc.cpp Correct the license information. 2016-02-06 01:27:36 +09:00
test_mpeg.cpp Remove a duplicate test file. 2017-01-27 22:10:02 +09:00
test_ogg.cpp Prevent the segment table of Ogg pages from exceeding the size limit. 2016-12-01 10:51:59 +09:00
test_oggflac.cpp Add a common function to generate a long string to test. 2016-10-31 20:01:52 +09:00
test_opus.cpp Add a common function to generate a long string to test. 2016-10-31 20:01:52 +09:00
test_propertymap.cpp Correct the license information. 2016-02-06 01:27:36 +09:00
test_riff.cpp Always update the global RIFF size when updating RIFF files. 2016-02-22 22:27:18 +09:00
test_s3m.cpp Correct the license information. 2016-02-06 01:27:36 +09:00
test_speex.cpp Add a common function to generate a long string to test. 2016-10-31 20:01:52 +09:00
test_string.cpp Add some test cases for invalid UTF-8 sequences. 2017-01-31 14:27:23 +09:00
test_synchdata.cpp taglib: fix test build failure on powerpc/c++11 (#834) 2017-09-18 20:06:55 -05:00
test_trueaudio.cpp Correct the license information. 2016-02-06 01:27:36 +09:00
test_wav.cpp Correct the license information. 2016-02-06 01:27:36 +09:00
test_wavpack.cpp Correct the license information. 2016-02-06 01:27:36 +09:00
test_xiphcomment.cpp Suppress MSVC warnings in test. 2016-11-24 14:45:22 +09:00
test_xm.cpp Correct the license information. 2016-02-06 01:27:36 +09:00
utils.h Add a common function to generate a long string to test. 2016-10-31 20:01:52 +09:00