From 702941cd97e30d600c2c1275823bc58231b2c361 Mon Sep 17 00:00:00 2001 From: Richard Lowe Date: Sat, 9 Feb 2013 17:21:16 -0500 Subject: 3544 save-args matcher could be considerably more robust 3545 save-args matcher should accept saves may be out-of-order Reviewed by: Joshua M. Clulow Reviewed by: Robert Mustacchi Reviewed by: Albert Lee Reviewed by: Hans Rosenfeld Approved by: Gordon Ross --- usr/src/lib/libsaveargs/tests/functional/basic.c | 32 ++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 usr/src/lib/libsaveargs/tests/functional/basic.c (limited to 'usr/src/lib/libsaveargs/tests/functional/basic.c') diff --git a/usr/src/lib/libsaveargs/tests/functional/basic.c b/usr/src/lib/libsaveargs/tests/functional/basic.c new file mode 100644 index 0000000000..4a6a3819a6 --- /dev/null +++ b/usr/src/lib/libsaveargs/tests/functional/basic.c @@ -0,0 +1,32 @@ +/* + * This file and its contents are supplied under the terms of the + * Common Development and Distribution License ("CDDL"), version 1.0. + * You may only use this file in accordance with the terms of version + * 1.0 of the CDDL. + * + * A full copy of the text of the CDDL should have accompanied this + * source. A copy of the CDDL is also available via the Internet at + * http://www.illumos.org/license/CDDL. + */ + +/* + * Copyright 2012, Richard Lowe. + */ + +#include +#include + +int +test(long a, long b, long c, long d) +{ + printf("%ld %ld %ld %ld\n", a, b, c, d); + for (;;) + sleep(60); +} + +int +main(int argc, char **argv) +{ + test(1, 2, 3, 4); + return (0); +} -- cgit v1.2.3