The NetBSD Project

CVS log for src/tests/lib/libc/gen/t_siginfo.c

[BACK] Up to [cvs.NetBSD.org] / src / tests / lib / libc / gen

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.20 / (download) - annotate - [select for diffs], Fri Apr 12 17:30:50 2013 UTC (5 weeks, 4 days ago) by christos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.19: +2 -6 lines
Diff to previous 1.19 (colored)

use one qemu test

Revision 1.19 / (download) - annotate - [select for diffs], Fri Apr 12 17:13:55 2013 UTC (5 weeks, 4 days ago) by christos
Branch: MAIN
Changes since 1.18: +6 -8 lines
Diff to previous 1.18 (colored)

easier way to find if we are on qemu.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jun 13 11:45:17 2012 UTC (11 months, 1 week ago) by njoly
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-nbase, tls-maxphys-base, tls-maxphys, agc-symver-base, agc-symver
Changes since 1.17: +16 -3 lines
Diff to previous 1.17 (colored)

Skip sigbus_adraln testcase on alpha unless global
machdep.unaligned_sigbus sysctl is enabled.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Apr 23 15:07:56 2012 UTC (12 months, 4 weeks ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base5
Changes since 1.16: +5 -16 lines
Diff to previous 1.16 (colored)

Revert previous, si_addr is expected to be the faulting *data* address
(mmm, consistent standards).
Add a few tweaks to prevent the compiler's optimizer outsmarting the test.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Apr 22 08:52:26 2012 UTC (12 months, 4 weeks ago) by martin
Branch: MAIN
Changes since 1.15: +14 -1 lines
Diff to previous 1.15 (colored)

Do not compare si_addr (address of faulting instruction) against the
unaligned data address causing the fault - this will always fail.
If anybody knows a portable way to get the data address involved in the
fault, please fix the test case as originally intended.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Apr 20 00:40:31 2012 UTC (13 months ago) by jym
Branch: MAIN
Changes since 1.14: +69 -1 lines
Diff to previous 1.14 (colored)

ATF test for SIGBUS => BUS_ADRALN (invalid address alignment).

That one is tedious to test under x86: alignment exceptions are
not reported by this architecture unless you ask for them explicitely (by
setting the PSL_AC bit). The brokenness does not end there: %cr2 should
contain the address where the unaligned access occured, alas, it does not.

I am not aware of other architectures where this could happen. Still, my
knowledge is limited; if there is one, feel free to send me a mail and I
will update the test accordingly.

Adding insult to injury, this test can fail in various funny ways with VMs:
- under x86 QEMU, no trap() happens. As ring 3 code stays almost untouched by
QEMU VMM, I suppose the exception can only be triggered when the host
itself is capable of catching unaligned accesses.
- under Virtual Box with HVM support, i386 works fine, but amd64 fails with a
SIGILL (Illegal instruction) that happens right before entering the
signal handler. No idea why, and trying to debug it with gdb freezes the VM
(including ddb breaks).

Anyway, tested with:
- i386: P4 host, anita, Virtual Box HVM (Mac OS X)
- amd64: anita, Virtual Box HVM (Mac OS X)

XXX I would appreciate if someone could test it under a real amd64 host with
an up-to-date kernel, so I can reasonably assume that the culprit is
Virtual Box and not our amd64 port (my test machine being off line
I cannot do it myself). Results from other arches would be a plus too.

Initial issue reported by Nicolas Joly on port-amd64. Thanks!

Revision 1.14 / (download) - annotate - [select for diffs], Sun Mar 18 07:14:08 2012 UTC (14 months ago) by jruoho
Branch: MAIN
CVS Tags: yamt-pagecache-base4
Changes since 1.13: +13 -13 lines
Diff to previous 1.13 (colored)

To be on the safe side, use the category/number notation when referring to
PRs (otherwise third-party sed-scripts might miss the references). Also
remove white-space.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Mar 17 20:10:08 2012 UTC (14 months ago) by christos
Branch: MAIN
Changes since 1.12: +2 -5 lines
Diff to previous 1.12 (colored)

annotate the PR that failed, and has been fixed.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Oct 1 17:46:10 2011 UTC (19 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache
Changes since 1.11: +5 -4 lines
Diff to previous 1.11 (colored)

use _FLOAT_IEEE754 instead of vax.

Revision 1.11 / (download) - annotate - [select for diffs], Tue May 24 15:20:37 2011 UTC (23 months, 4 weeks ago) by joerg
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

Use volatile for explicit 0 dereference

Revision 1.10 / (download) - annotate - [select for diffs], Wed Mar 2 03:42:56 2011 UTC (2 years, 2 months ago) by riz
Branch: MAIN
CVS Tags: bouyer-quota2-nbase
Changes since 1.9: +7 -1 lines
Diff to previous 1.9 (colored)

Skip the sigfpe_flt and sigfpe_int tests on powerpc; powerpc does
not fault on divide-by-zero.  As discussed on tech-userlevel.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Mar 1 12:47:43 2011 UTC (2 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.8: +5 -1 lines
Diff to previous 1.8 (colored)

Attempt further qemu heuristics to avoid failures due to non-working FPU

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jan 3 20:51:26 2011 UTC (2 years, 4 months ago) by pgoyette
Branch: MAIN
CVS Tags: bouyer-quota2-base
Branch point for: bouyer-quota2
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored)

Don't run FP Exception tests under qemu - they don't work.

While here, properly skip certain tests on vax architecture.  (It is
not legal to have a test-program with zero test cases, so each test
case needs to check-and-skip.)

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jan 2 21:39:24 2011 UTC (2 years, 4 months ago) by pgoyette
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

If we survive the check for wrong signal code, reset our expectation to
"pass" before checking the signal errno.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jan 2 21:34:00 2011 UTC (2 years, 4 months ago) by pgoyette
Branch: MAIN
Changes since 1.5: +1 -1 lines
Diff to previous 1.5 (colored)

Fix $NetBSD$ keyword

Revision 1.5 / (download) - annotate - [select for diffs], Fri Dec 31 14:54:55 2010 UTC (2 years, 4 months ago) by mlelstv
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.4: +23 -12 lines
Diff to previous 1.4 (colored)

return from an SIGFPE handler is not defined when the hardware
caused the exception. Use sigsetjmp/siglongjmp to resume the
test function instead.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Dec 27 15:24:13 2010 UTC (2 years, 4 months ago) by njoly
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Do use integer arithmetics to generate FPE_INTDIV in sigfpe_int testcase.

Ok pgoyette.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Dec 26 12:32:28 2010 UTC (2 years, 4 months ago) by pgoyette
Branch: MAIN
Changes since 1.2: +5 -15 lines
Diff to previous 1.2 (colored)

Re-enable printing of MD data, with appropriate casts.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Dec 26 03:25:07 2010 UTC (2 years, 4 months ago) by pgoyette
Branch: MAIN
Changes since 1.1: +15 -5 lines
Diff to previous 1.1 (colored)

For now, don't try to print out machine-dependant stuff.  When I figure
out what the right format strings are, I'll re-enable it.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Dec 25 01:04:26 2010 UTC (2 years, 4 months ago) by pgoyette
Branch: MAIN

Move the siginfo tests from regress to atf.  While here, add a new test
for PR/43655.

XXX The sigchild_dump test currently fails when execute under atf-run.
XXX It does not fail when executed directly from the shell, so there's
XXX something in atf that prevents the child process from dumping.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>