diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-12-05 15:08:59 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-12-05 15:08:59 +0100 |
commit | da616c1496e2bd3022dbe4afdd162a80731c08ad (patch) | |
tree | f9267820fca1d4d0de90b79f4ae9573d22b97b72 /support | |
parent | 216933b2422f1379809d30fbf403c0b047631ad8 (diff) | |
download | glibc-da616c1496e2bd3022dbe4afdd162a80731c08ad.tar.gz glibc-da616c1496e2bd3022dbe4afdd162a80731c08ad.tar.xz glibc-da616c1496e2bd3022dbe4afdd162a80731c08ad.zip |
support/tst-test_compare: Fix 32-bit/64-bit expected output mismatch
The use of a long type resulted in test output differences between 32-bit and 64-bit architectures, causing the test to fail on 32-bit architectures.
Diffstat (limited to 'support')
-rw-r--r-- | support/tst-test_compare.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/support/tst-test_compare.c b/support/tst-test_compare.c index e4dcfd462a..de138d4f8a 100644 --- a/support/tst-test_compare.c +++ b/support/tst-test_compare.c @@ -27,7 +27,7 @@ subprocess (void *closure) /* These tests should fail. */ TEST_COMPARE (ch, -1); /* Line 28. */ TEST_COMPARE (2LL, -2LL); /* Line 29. */ - TEST_COMPARE (3L, (short) -3); /* Line 30. */ + TEST_COMPARE (3LL, (short) -3); /* Line 30. */ } struct bitfield @@ -86,7 +86,7 @@ do_test (void) " right: -2 (0xfffffffffffffffe); from: -2LL\n" "tst-test_compare.c:30: numeric comparison failure" " (widths 64 and 32)\n" - " left: 3 (0x3); from: 3L\n" + " left: 3 (0x3); from: 3LL\n" " right: -3 (0xfffffffd); from: (short) -3\n") == 0); /* Check that there is no output on standard error. */ |