~clint-fewbar/ubuntu/precise/erlang/merge-15b

« back to all changes in this revision

Viewing changes to lib/erl_interface/test/erl_ext_SUITE_data/ext_test.c

  • Committer: Package Import Robot
  • Author(s): Sergei Golovan
  • Date: 2011-12-15 19:20:10 UTC
  • mfrom: (1.1.18) (3.5.15 sid)
  • mto: (3.5.16 sid)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: package-import@ubuntu.com-20111215192010-jnxcfe3tbrpp0big
Tags: 1:15.b-dfsg-1
* New upstream release.
* Upload to experimental because this release breaks external drivers
  API along with ABI, so several applications are to be fixed.
* Removed SSL patch because the old SSL implementation is removed from
  the upstream distribution.
* Removed never used patch which added native code to erlang beam files.
* Removed the erlang-docbuilder binary package because the docbuilder
  application was dropped by upstream.
* Documented dropping ${erlang-docbuilder:Depends} substvar in
  erlang-depends(1) manpage.
* Made erlang-base and erlang-base-hipe provide virtual package
  erlang-abi-15.b (the number means the first erlang version, which
  provides current ABI).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * %CopyrightBegin%
3
3
 * 
4
 
 * Copyright Ericsson AB 2002-2009. All Rights Reserved.
 
4
 * Copyright Ericsson AB 2002-2011. All Rights Reserved.
5
5
 * 
6
6
 * The contents of this file are subject to the Erlang Public License,
7
7
 * Version 1.1, (the "License"); you may not use this file except in
82
82
    // erlang:term_to_binary([34,{a,n},a,erlang])
83
83
    unsigned char term2[] = {131,108,0,0,0,4,97,34,104,2,100,0,1,97,100,0,1,110,100,0,1,97,100,0,6,101,114,108,97,110,103,106};
84
84
 
 
85
    // erlang:term_to_binary([0])
 
86
    unsigned char term3[] = {131,107,0,1,0};
 
87
    // erlang:term_to_binary([0, 1000])
 
88
    unsigned char term4[] = {131,108,0,0,0,2,97,0,98,0,0,3,232,106};
 
89
 
85
90
    erl_init(NULL, 0);
86
91
    start_a = term1;
87
92
    start_b = term2;
90
95
    
91
96
    test_compare_ext("lists", start_a, end_a, start_b, end_b, 1);
92
97
 
 
98
    start_a = term3;
 
99
    start_b = term4;
 
100
    end_a   = term3 + sizeof(term3);
 
101
    end_b   = term4 + sizeof(term4);
 
102
 
 
103
    test_compare_ext("lists1", start_a, end_a, start_b, end_b, -1);
 
104
 
93
105
    report(1);
94
106
}
95
107