Module Name:    src
Committed By:   riastradh
Date:           Tue Feb 11 06:26:19 UTC 2020

Modified Files:
        src/tests/usr.bin/c++: t_call_once.sh t_cxxruntime.sh t_hello.sh
            t_pthread_once.sh t_static_destructor.sh
        src/tests/usr.bin/cc: t_hello.sh

Log Message:
Mark compilation with -pg as xfail on aarch64.

XXX file a PR to xref


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/c++/t_call_once.sh \
    src/tests/usr.bin/c++/t_pthread_once.sh \
    src/tests/usr.bin/c++/t_static_destructor.sh
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/c++/t_cxxruntime.sh \
    src/tests/usr.bin/c++/t_hello.sh
cvs rdiff -u -r1.8 -r1.9 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/c++/t_call_once.sh
diff -u src/tests/usr.bin/c++/t_call_once.sh:1.2 src/tests/usr.bin/c++/t_call_once.sh:1.3
--- src/tests/usr.bin/c++/t_call_once.sh:1.2	Tue Jan  8 00:21:19 2019
+++ src/tests/usr.bin/c++/t_call_once.sh	Tue Feb 11 06:26:19 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: t_call_once.sh,v 1.2 2019/01/08 00:21:19 christos Exp $
+#	$NetBSD: t_call_once.sh,v 1.3 2020/02/11 06:26:19 riastradh Exp $
 #
 # Copyright (c) 2018 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -112,6 +112,11 @@ int main(void) {
 }
 EOF
 	atf_check -s exit:0 -o ignore -e ignore c++ -pg -o call_once test.cpp -pthread
+	case `uname -p` in
+	aarch64)
+		atf_expect_fail 'cc -pg is busted on aarch64'
+		;;
+	esac
 	atf_check -s exit:0 -o inline:"hello, world!\n" ./call_once
 }
 
@@ -228,6 +233,11 @@ EOF
 	atf_check -s exit:0 -o ignore -e ignore \
 	    c++ -pg -o call_once test.cpp -L. -ltest -pthread
 
+	case `uname -p` in
+	aarch64)
+		atf_expect_fail 'cc -pg is busted on aarch64'
+		;;
+	esac
 	export LD_LIBRARY_PATH=.
 	atf_check -s exit:0 -o inline:"hello, world!\n" ./call_once
 }
Index: src/tests/usr.bin/c++/t_pthread_once.sh
diff -u src/tests/usr.bin/c++/t_pthread_once.sh:1.2 src/tests/usr.bin/c++/t_pthread_once.sh:1.3
--- src/tests/usr.bin/c++/t_pthread_once.sh:1.2	Tue Jan  8 00:22:11 2019
+++ src/tests/usr.bin/c++/t_pthread_once.sh	Tue Feb 11 06:26:19 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: t_pthread_once.sh,v 1.2 2019/01/08 00:22:11 christos Exp $
+#	$NetBSD: t_pthread_once.sh,v 1.3 2020/02/11 06:26:19 riastradh Exp $
 #
 # Copyright (c) 2018 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -110,6 +110,11 @@ int main(void) {
 }
 EOF
 	atf_check -s exit:0 -o ignore -e ignore c++ -pg -o pthread_once test.cpp -pthread
+	case `uname -p` in
+	aarch64)
+		atf_expect_fail 'cc -pg is busted on aarch64'
+		;;
+	esac
 	atf_check -s exit:0 -o inline:"hello, world!\n" ./pthread_once
 }
 
@@ -222,6 +227,11 @@ EOF
 	atf_check -s exit:0 -o ignore -e ignore \
 	    c++ -pg -o pthread_once test.cpp -L. -ltest -pthread
 
+	case `uname -p` in
+	aarch64)
+		atf_expect_fail 'cc -pg is busted on aarch64'
+		;;
+	esac
 	export LD_LIBRARY_PATH=.
 	atf_check -s exit:0 -o inline:"hello, world!\n" ./pthread_once
 }
Index: src/tests/usr.bin/c++/t_static_destructor.sh
diff -u src/tests/usr.bin/c++/t_static_destructor.sh:1.2 src/tests/usr.bin/c++/t_static_destructor.sh:1.3
--- src/tests/usr.bin/c++/t_static_destructor.sh:1.2	Sat Mar 24 00:26:51 2018
+++ src/tests/usr.bin/c++/t_static_destructor.sh	Tue Feb 11 06:26:19 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: t_static_destructor.sh,v 1.2 2018/03/24 00:26:51 kamil Exp $
+#	$NetBSD: t_static_destructor.sh,v 1.3 2020/02/11 06:26:19 riastradh Exp $
 #
 # Copyright (c) 2017 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -123,6 +123,11 @@ struct B {
 int main(void) {struct B b;return 0;}
 EOF
 	atf_check -s exit:0 -o ignore -e ignore c++ -pg -o hello test.cpp
+	case `uname -p` in
+	aarch64)
+		atf_expect_fail 'cc -pg is busted on aarch64'
+		;;
+	esac
 	atf_check -s exit:0 -o inline:"CTOR A\nCTOR B\nDTOR B:10\nDTOR A:20\n" ./hello
 }
 
@@ -275,6 +280,11 @@ EOF
 	atf_check -s exit:0 -o ignore -e ignore \
 	    c++ -pg -o hello test.cpp -L. -ltest
 
+	case `uname -p` in
+	aarch64)
+		atf_expect_fail 'cc -pg is busted on aarch64'
+		;;
+	esac
 	export LD_LIBRARY_PATH=.
 	atf_check -s exit:0 -o inline:"CTOR A\nCTOR B\nDTOR B:10\nDTOR A:20\n" ./hello
 }

Index: src/tests/usr.bin/c++/t_cxxruntime.sh
diff -u src/tests/usr.bin/c++/t_cxxruntime.sh:1.3 src/tests/usr.bin/c++/t_cxxruntime.sh:1.4
--- src/tests/usr.bin/c++/t_cxxruntime.sh:1.3	Sat Mar 24 00:26:51 2018
+++ src/tests/usr.bin/c++/t_cxxruntime.sh	Tue Feb 11 06:26:19 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: t_cxxruntime.sh,v 1.3 2018/03/24 00:26:51 kamil Exp $
+#	$NetBSD: t_cxxruntime.sh,v 1.4 2020/02/11 06:26:19 riastradh Exp $
 #
 # Copyright (c) 2017 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -105,6 +105,11 @@ cxxruntime_profile_body() {
 int main(void) {std::cout << "hello world" << std::endl;exit(0);}
 EOF
 	atf_check -s exit:0 -o ignore -e ignore c++ -pg -o hello test.cpp
+	case `uname -p` in
+	aarch64)
+		atf_expect_fail 'cc -pg is busted on aarch64'
+		;;
+	esac
 	atf_check -s exit:0 -o inline:"hello world\n" ./hello
 }
 
@@ -208,6 +213,11 @@ EOF
 	atf_check -s exit:0 -o ignore -e ignore \
 	    c++ -pg -o hello test.cpp -L. -ltest
 
+	case `uname -p` in
+	aarch64)
+		atf_expect_fail 'cc -pg is busted on aarch64'
+		;;
+	esac
 	export LD_LIBRARY_PATH=.
 	atf_check -s exit:0 -o inline:"hello world\n" ./hello
 }
Index: src/tests/usr.bin/c++/t_hello.sh
diff -u src/tests/usr.bin/c++/t_hello.sh:1.3 src/tests/usr.bin/c++/t_hello.sh:1.4
--- src/tests/usr.bin/c++/t_hello.sh:1.3	Sat Mar 24 00:26:51 2018
+++ src/tests/usr.bin/c++/t_hello.sh	Tue Feb 11 06:26:19 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: t_hello.sh,v 1.3 2018/03/24 00:26:51 kamil Exp $
+#	$NetBSD: t_hello.sh,v 1.4 2020/02/11 06:26:19 riastradh Exp $
 #
 # Copyright (c) 2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -102,6 +102,11 @@ hello_profile_body() {
 int main(void) {printf("hello world\n");exit(0);}
 EOF
 	atf_check -s exit:0 -o ignore -e ignore c++ -pg -o hello test.cpp
+	case `uname -p` in
+	aarch64)
+		atf_expect_fail 'cc -pg is busted on aarch64'
+		;;
+	esac
 	atf_check -s exit:0 -o inline:"hello world\n" ./hello
 }
 
@@ -203,6 +208,11 @@ EOF
 	atf_check -s exit:0 -o ignore -e ignore \
 	    c++ -pg -o hello test.cpp -L. -ltest
 
+	case `uname -p` in
+	aarch64)
+		atf_expect_fail 'cc -pg is busted on aarch64'
+		;;
+	esac
 	export LD_LIBRARY_PATH=.
 	atf_check -s exit:0 -o inline:"hello world\n" ./hello
 }

Index: src/tests/usr.bin/cc/t_hello.sh
diff -u src/tests/usr.bin/cc/t_hello.sh:1.8 src/tests/usr.bin/cc/t_hello.sh:1.9
--- src/tests/usr.bin/cc/t_hello.sh:1.8	Sat Feb  9 02:36:28 2019
+++ src/tests/usr.bin/cc/t_hello.sh	Tue Feb 11 06:26:19 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: t_hello.sh,v 1.8 2019/02/09 02:36:28 mrg Exp $
+#	$NetBSD: t_hello.sh,v 1.9 2020/02/11 06:26:19 riastradh Exp $
 #
 # Copyright (c) 2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -72,6 +72,11 @@ hello_profile_body() {
 int main(void) {printf("hello world\n");exit(0);}
 EOF
 	atf_check -s exit:0 -o ignore -e ignore cc -o hello -pg test.c
+	case `uname -p` in
+	aarch64)
+		atf_expect_fail 'cc -pg is busted on aarch64'
+		;;
+	esac
 	atf_check -s exit:0 -o inline:"hello world\n" ./hello
 	atf_check -s exit:0 -o ignore -e ignore cc -o hello2 -fprofile-generate test.c
 	atf_check -s exit:0 -o inline:"hello world\n" ./hello2

Reply via email to