pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch #8508] Pspp.t test fails on debian/sid - probably depends on perl


From: Friedrich Beckmann
Subject: [patch #8508] Pspp.t test fails on debian/sid - probably depends on perl version
Date: Fri, 08 Aug 2014 22:24:03 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.77.4 (KHTML, like Gecko) Version/7.0.5 Safari/537.77.4

URL:
  <http://savannah.gnu.org/patch/?8508>

                 Summary: Pspp.t test fails on debian/sid - probably depends
on perl version
                 Project: PSPP
            Submitted by: beckmanf
            Submitted on: Fr 08 Aug 2014 22:24:01 GMT
                Category: None
              Item Group: None
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

-- Problem description from mailing list --

i tried the debian package (based on 0.8.3) on sid with pbuilder and all tests
pass, except test number 1039 (pspp.t). 
Within that test the „Basic reader test“ fails. The test fails because
there is a mismatch between the output file „out.txt“ and 
the expected file contents. I think there is a difference in the value labels
output.  See the differences below. 
The difference is the order of the output. Maybe somebody could say if this is
a real difference or just a test problem. 

Friedrich

The relevant code snippet is:
======== from Pspp.t ===============
    print MYFILE "Variable $v is \"$name\", label is \"$label\"\n";
    
    my $vl = $var->get_value_labels ();

    print MYFILE "Value Labels:\n";
    print MYFILE "$_ => $vl->{$_}\n" for keys %$vl;

======== Expected Result from pspp.t ============
ok (compare ("$tempdir/out.txt", <<EOF), "Basic reader operation");
Variable 0 is "string", label is "A Short String Variable"
Value Labels:
3333     => threes
1111     => ones
2222     => twos
Variable 1 is "longstring", label is "A Long String Variable"
Value Labels:
Variable 2 is "numeric", label is "A Numeric Variable"
Value Labels:
1 => Unity
3 => Thripality
2 => Duality
Variable 3 is "date", label is "A Date Variable"
Value Labels:
Variable 4 is "dollar", label is "A Dollar Variable"
Value Labels:
…

========= Content of produced out.txt =============
Variable 0 is "string", label is "A Short String Variable"
Value Labels:
1111     => ones
2222     => twos
3333     => threes
Variable 1 is "longstring", label is "A Long String Variable"
Value Labels:
Variable 2 is "numeric", label is "A Numeric Variable"
Value Labels:
3 => Thripality
2 => Duality
1 => Unity
Variable 3 is "date", label is "A Date Variable"
Value Labels:
Variable 4 is "dollar", label is "A Dollar Variable"
Value Labels:
Variable 5 is "datetime", label is "A Datetime Variable"
Value Labels:
….

=======================

The provided patch for Pspp.t sorts the keys. Therefore the output sequence
does not depend on perl implementation anymore. So my understanding is that
this is a test problem. With this patch the test 1039 works on sid and wheezy





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fr 08 Aug 2014 22:24:01 GMT  Name: test1039fix.patch  Size: 884B   By:
beckmanf

<http://savannah.gnu.org/patch/download.php?file_id=31876>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8508>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]