slang-devel mailing list

[2021 Date Index] [2021 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-devel] Unit test failure in slcfitsio


Hello one more time,

One of the unit tests src/tests/test_fits.sl fails with the following error message.

    make -j1 test VERBOSE=1 -C src
    make[2]: Entering directory '/var/data/rlaboiss/debian/PKGS/slcfitsio/slcfitsio/src'
    **** Warning: Write then read image failed: UInteger_Type[2,10] vs ULong_Type[2,10]

The patch attached to this message "fixes" the problem, but I am not certain that it is appropriate. This may be related to the architecture of my system (amd64).

Best,

Rafael Laboissière
Description: Fix integer type in unit test
 It is not clear why the change of UInt32_Type into UInt64_Type fix
 the unit test in test_fits.sl. This may be related to the system
 architecture.
Author: Rafael Laboissière <rafael@xxxxxxxxxx>
Forwarded: no
Last-Update: 2021-09-26

--- slcfitsio-0.3.8+nosvn.orig/src/tests/test_fits.sl
+++ slcfitsio-0.3.8+nosvn/src/tests/test_fits.sl
@@ -79,7 +79,7 @@ define test_img (filename)
    fits_write_img (fptr, array);
    fits_close_file (fptr);
    
-   array = typecast (array, UInt32_Type);
+   array = typecast (array, UInt64_Type);
    reshape (array, dims);
 
    fptr = fits_open_file (filename, "w");

[2021 date index] [2021 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]