~ubuntu-branches/ubuntu/saucy/openexr/saucy

« back to all changes in this revision

Viewing changes to IlmImfTest/testPreviewImage.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Adeodato Simó
  • Date: 2008-03-24 23:00:21 UTC
  • mfrom: (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080324230021-gnofz9mnvcj1xlv3
Tags: 1.6.1-3
Disable (hopefully temporarily) the test suite on arm and ia64.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
#include <stdio.h>
43
43
#include <assert.h>
44
44
 
 
45
#ifndef ILM_IMF_TEST_IMAGEDIR
 
46
    #define ILM_IMF_TEST_IMAGEDIR
 
47
#endif
 
48
 
 
49
 
45
50
using namespace Imf;
46
51
using namespace Imath;
47
52
using namespace std;
172
177
    cout << "comparing files " << fileName2 << " and " << fileName3 << endl;
173
178
 
174
179
    {
175
 
        #ifndef HAVE_STL_IOS_BASE
176
 
            ifstream file2 (fileName2, std::ios::binary|std::ios::in);
177
 
            ifstream file3 (fileName3, std::ios::binary|std::ios::in);
178
 
        #else
179
 
            ifstream file2 (fileName2, std::ios_base::binary);
180
 
            ifstream file3 (fileName3, std::ios_base::binary);
181
 
        #endif
 
180
        ifstream file2 (fileName2, std::ios_base::binary);
 
181
        ifstream file3 (fileName3, std::ios_base::binary);
182
182
 
183
183
        while (true)
184
184
        {
210
210
    {
211
211
        cout << "Testing preview image attribute" << endl;
212
212
 
213
 
        readWriteFiles ("comp_piz.exr",
 
213
        readWriteFiles (ILM_IMF_TEST_IMAGEDIR "comp_piz.exr",
214
214
                        filename1,
215
215
                        filename2);
216
216