changeset 13667:042db6341598

2565 dtrace tests could stop fighting the compiler Reviewed by: Adam Leventhal <ahl@delphix.com> Approved by: Eric Schrock <eric.schrock@delphix.com>
author Richard Lowe <richlowe@richlowe.net>
date Mon, 05 Dec 2011 05:09:07 +0000
parents ab986bc53f59
children 9ac1613fc45f
files usr/src/cmd/dtrace/test/tst/Makefile.com
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/dtrace/test/tst/Makefile.com	Wed Mar 28 05:42:57 2012 +0100
+++ b/usr/src/cmd/dtrace/test/tst/Makefile.com	Mon Dec 05 05:09:07 2011 +0000
@@ -23,8 +23,6 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
 
 include $(SRC)/cmd/Makefile.cmd
 
@@ -56,6 +54,12 @@
 $(ROOT_TSTS) := FILEMODE = 0444
 $(ROOT_EXES) := FILEMODE = 0555
 
+# The DTrace tests rely on "normal" behaviour from the compiler which
+# agressive optimization of small, simple, one compilation-unit programs may
+# utterly subvert.  We force the compiler to not optimize rather than engage
+# in an arms race with increasingly belligerent optimizers.
+COPTFLAG=	-xO0
+
 all: $(EXES)
 
 clean lint: