This is the mail archive of the
infinity@sourceware.org
mailing list for the Infinity project.
Test 'valid/test-corpus' fails for 32-bit architectures
- From: "Radovan Birdic" <Radovan dot Birdic at rt-rk dot com>
- To: infinity at sourceware dot org
- Date: Sun, 21 May 2017 22:28:30 +0200
- Subject: Test 'valid/test-corpus' fails for 32-bit architectures
- Authentication-results: sourceware.org; auth=none
Hi,
Package libi8x fails on Debian for all 32-bit endian architectures during testing:
> make check-TESTS
> PASS: exec/ops/test-deref
> PASS: exec/test-factorial
> PASS: exec/test-smoke
> FAIL: valid/test-corpus
> ========================================
> libi8x 0.0.3: tests/test-suite.log
> ========================================
>
> # TOTAL: 4
> # PASS: 3
> # SKIP: 0
> # XFAIL: 0
> # FAIL: 1
> # XPASS: 0
> # ERROR: 0
>
> .. contents:: :depth: 2
>
> FAIL: valid/test-corpus
> =======================
>
> corpus/i8c/0.0.4/32el/test_deref/test_deref/0015-0001[0x9]: Unhandled note
> corpus/i8c/0.0.4/32el/test_deref/test_deref/0011-0001[0x9]: Unhandled note
> corpus/i8c/0.0.4/32be/test_deref/test_deref/0015-0001[0x9]: Unhandled note
> corpus/i8c/0.0.4/32be/test_deref/test_deref/0011-0001[0x9]: Unhandled note
> valid/test-corpus.c:137: ftw_failcount == 0
> FAIL valid/test-corpus (exit status: 1)
>
> ============================================================================
> Testsuite summary for libi8x 0.0.3
> ============================================================================
> # TOTAL: 4
> # PASS: 3
> # SKIP: 0
> # XFAIL: 0
> # FAIL: 1
> # XPASS: 0
> # ERROR: 0
> ============================================================================
Full build log for mipsel:
https://buildd.debian.org/status/fetch.php?pkg=libi8x&arch=mipsel&ver=0.0.3-1&stamp=1493727519&raw=0
Binary files 'test_deref/0015-0001' and 'test_deref/0011-0001' from test folder 0.0.4 cause a problem.
Does it make sense to you to threat these tests like the same tests from 0.0.3 version?
I have created and attached a patch that handles these tests.
With this patch package builds successfully on my local mips, mipsel and i386 machines.
Could you please look at this?
Regards,
Radovan
--- libi8x-0.0.3.orig/tests/valid/test-corpus.c
+++ libi8x-0.0.3/tests/valid/test-corpus.c
@@ -77,6 +77,15 @@ do_test (struct i8x_ctx *ctx, const char
|| strstr (filename, "/test_deref/0015-0001") != NULL))
expect_err = I8X_NOTE_UNHANDLED;
}
+
+ if (strstr (filename, "/i8c/0.0.4/") != NULL)
+ {
+ if (__WORDSIZE == 32
+ && strstr (filename, "/i8c/0.0.4/32") != NULL
+ && (strstr (filename, "/test_deref/0011-0001") != NULL
+ || strstr (filename, "/test_deref/0015-0001") != NULL))
+ expect_err = I8X_NOTE_UNHANDLED;
+ }
struct i8x_func *func;
err = i8x_func_new_bytecode (note, &func);