Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/usr.bin/cc In the -m32 test, additionally test profile...
details: https://anonhg.NetBSD.org/src/rev/609660d8c0ec
branches: trunk
changeset: 354001:609660d8c0ec
user: martin <martin%NetBSD.org@localhost>
date: Wed May 31 11:08:35 2017 +0000
description:
In the -m32 test, additionally test profiled binaries.
diffstat:
tests/usr.bin/cc/t_hello.sh | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r 07c91021a3e9 -r 609660d8c0ec tests/usr.bin/cc/t_hello.sh
--- a/tests/usr.bin/cc/t_hello.sh Wed May 31 10:15:18 2017 +0000
+++ b/tests/usr.bin/cc/t_hello.sh Wed May 31 11:08:35 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_hello.sh,v 1.5 2017/05/18 10:29:47 martin Exp $
+# $NetBSD: t_hello.sh,v 1.6 2017/05/31 11:08:35 martin Exp $
#
# Copyright (c) 2011 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -149,6 +149,16 @@
atf_check -s exit:0 -o ignore -e ignore cc -o hello -m32 \
-static test.c
atf_check -s exit:0 -o inline:"hello static world\n" ./hello
+
+ # and another test with profile 32bit binaries
+ cat > test.c << EOF
+#include <stdio.h>
+#include <stdlib.h>
+int main(void) {printf("hello 32bit profile world\n");exit(0);}
+EOF
+ atf_check -s exit:0 -o ignore -e ignore cc -o hello -m32 \
+ -pg test.c
+ atf_check -s exit:0 -o inline:"hello 32bit profile world\n" ./hello
}
atf_init_test_cases()
Home |
Main Index |
Thread Index |
Old Index