Module Name: src Committed By: martin Date: Wed May 31 11:08:35 UTC 2017
Modified Files: src/tests/usr.bin/cc: t_hello.sh Log Message: In the -m32 test, additionally test profiled binaries. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/cc/t_hello.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/usr.bin/cc/t_hello.sh diff -u src/tests/usr.bin/cc/t_hello.sh:1.5 src/tests/usr.bin/cc/t_hello.sh:1.6 --- src/tests/usr.bin/cc/t_hello.sh:1.5 Thu May 18 10:29:47 2017 +++ src/tests/usr.bin/cc/t_hello.sh Wed May 31 11:08:35 2017 @@ -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 @@ EOF 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()