xref: /aosp_15_r20/external/tcpdump/tests/isis-seg-fault-1-v.tests (revision 05b00f6010a2396e3db2409989fc67270046269f)
1*05b00f60SXin Li# -*- perl -*-
2*05b00f60SXin Li
3*05b00f60SXin Li# This "verbose" ISIS protocol test involves a float calculation that
4*05b00f60SXin Li# may produce a slightly different result depending on the compiler and
5*05b00f60SXin Li# the version of the instruction set for which it's generating code (see
6*05b00f60SXin Li# GitHub issue #333 for another example). The test is done only if we have
7*05b00f60SXin Li# a floating-point type, as reported by "./tcpdump --fp-type", of FPTYPE1.
8*05b00f60SXin Li#
9*05b00f60SXin Li# XXX - this works on my 32-bit x86 Linux virtual machine, so do this
10*05b00f60SXin Li# regardless of the floating-point type, so always do this.  If it
11*05b00f60SXin Li# fails on some platform, we'll need to tweak tcpdump and tests/TESTrun
12*05b00f60SXin Li# to check for *that* floating-point difference.
13*05b00f60SXin Li
14*05b00f60SXin Li$testlist = [
15*05b00f60SXin Li    {
16*05b00f60SXin Li        name => 'isis-seg-fault-1-v',
17*05b00f60SXin Li        input => 'isis-seg-fault-1.pcapng',
18*05b00f60SXin Li        output => 'isis-seg-fault-1-v.out',
19*05b00f60SXin Li        args   => '-v'
20*05b00f60SXin Li    },
21*05b00f60SXin Li    ];
22*05b00f60SXin Li
23*05b00f60SXin Li1;
24