Skip to content

Commit

Permalink
test: tst.selfarray2.d should not PASS
Browse files Browse the repository at this point in the history
Due to the drop support triggering bad address faults, this test ended
up reporting XPASS which it really should not.  Added an explicit ERROR
clause to detect faults (and report failure if a fault occurs).

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Reviewed-by: Eugene Loh <eugene.loh@oracle.com>
  • Loading branch information
kvanhees committed May 25, 2023
1 parent 19c6283 commit ba3459a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/unittest/scalars/tst.selfarray2.d
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Oracle Linux DTrace.
* Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2006, 2023, Oracle and/or its affiliates. All rights reserved.
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
Expand Down Expand Up @@ -44,3 +44,8 @@ tick-1sec
{
exit(0);
}

ERROR
{
exit(1);
}

0 comments on commit ba3459a

Please sign in to comment.