15984Sjhaslam /* 25984Sjhaslam * CDDL HEADER START 35984Sjhaslam * 45984Sjhaslam * The contents of this file are subject to the terms of the 55984Sjhaslam * Common Development and Distribution License (the "License"). 65984Sjhaslam * You may not use this file except in compliance with the License. 75984Sjhaslam * 85984Sjhaslam * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 95984Sjhaslam * or http://www.opensolaris.org/os/licensing. 105984Sjhaslam * See the License for the specific language governing permissions 115984Sjhaslam * and limitations under the License. 125984Sjhaslam * 135984Sjhaslam * When distributing Covered Code, include this CDDL HEADER in each 145984Sjhaslam * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 155984Sjhaslam * If applicable, add the following below this CDDL HEADER, with the 165984Sjhaslam * fields enclosed by brackets "[]" replaced with your own identifying 175984Sjhaslam * information: Portions Copyright [yyyy] [name of copyright owner] 185984Sjhaslam * 195984Sjhaslam * CDDL HEADER END 205984Sjhaslam */ 215984Sjhaslam 225984Sjhaslam /* 23*9531Srafael.vanoni@sun.com * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 245984Sjhaslam * Use is subject to license terms. 255984Sjhaslam */ 265984Sjhaslam 275984Sjhaslam /* 285984Sjhaslam * ASSERTION: 29*9531Srafael.vanoni@sun.com * Positive stddev() test 305984Sjhaslam * 315984Sjhaslam * SECTION: Aggregations/Aggregations 325984Sjhaslam * 335984Sjhaslam * NOTES: This is a simple verifiable positive test of the stddev() function. 34*9531Srafael.vanoni@sun.com * printa() for one aggregation, default printing behavior for the other 35*9531Srafael.vanoni@sun.com * so that we exercise both code paths. 365984Sjhaslam */ 375984Sjhaslam 385984Sjhaslam #pragma D option quiet 395984Sjhaslam 405984Sjhaslam BEGIN 415984Sjhaslam { 425984Sjhaslam @a = stddev(5000000000); 435984Sjhaslam @a = stddev(5000000100); 445984Sjhaslam @a = stddev(5000000200); 455984Sjhaslam @a = stddev(5000000300); 465984Sjhaslam @a = stddev(5000000400); 475984Sjhaslam @a = stddev(5000000500); 485984Sjhaslam @a = stddev(5000000600); 495984Sjhaslam @a = stddev(5000000700); 505984Sjhaslam @a = stddev(5000000800); 515984Sjhaslam @a = stddev(5000000900); 525984Sjhaslam @b = stddev(-5000000000); 535984Sjhaslam @b = stddev(-5000000100); 545984Sjhaslam @b = stddev(-5000000200); 555984Sjhaslam @b = stddev(-5000000300); 565984Sjhaslam @b = stddev(-5000000400); 575984Sjhaslam @b = stddev(-5000000500); 585984Sjhaslam @b = stddev(-5000000600); 595984Sjhaslam @b = stddev(-5000000700); 605984Sjhaslam @b = stddev(-5000000800); 615984Sjhaslam @b = stddev(-5000000900); 62*9531Srafael.vanoni@sun.com printa("%@d\n", @a); 635984Sjhaslam exit(0); 645984Sjhaslam } 65