xref: /openbsd-src/gnu/usr.bin/perl/t/porting/bincompat.t (revision f6aab3d83b51b91c24247ad2c2573574de475a82)
1#!./perl -w
2use strict;
3require './test.pl';
4skip_all("Sorting order differs under EBCDIC") if $::IS_EBCDIC || $::IS_EBCDIC;
5
6use Config;
7
8plan(2);
9
10# Defiantly a white box test...
11
12# As we need to call it direct, we'll take advantage of its result ordering:
13my @to_check = qw(bincompat_options non_bincompat_options);
14my @V = map {s/^ //r} Internals::V();
15
16while (my ($index, $sub) = each @to_check) {
17    my $got = join ' ', sort &{Config->can($sub)}();
18    is($got, $V[$index], "C source code has $sub in sorted order");
19}
20