mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-10 14:41:43 +00:00
add tiff test
This commit is contained in:
parent
3f0db002bc
commit
13e7ab5469
1 changed files with 17 additions and 0 deletions
17
test/libtiff-4.cpp
Normal file
17
test/libtiff-4.cpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
#include <unistd.h>
|
||||
#include <tiffio.h>
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
const char* const filename = "test.tiff";
|
||||
TIFF* f = TIFFOpen(filename, "w");
|
||||
AEDI_EXPECT(f != nullptr);
|
||||
|
||||
AEDI_EXPECT(TIFFSetField(f, TIFFTAG_IMAGEWIDTH, 32) == 1);
|
||||
AEDI_EXPECT(TIFFSetField(f, TIFFTAG_IMAGEWIDTH, 32) == 1);
|
||||
|
||||
TIFFClose(f);
|
||||
AEDI_EXPECT(unlink(filename) == 0);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue