public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/blueness:master commit in: tests-only/paxmarking/, tests-only/paxmarking/files/
Date: Sat, 18 May 2013 15:46:02 +0000 (UTC)	[thread overview]
Message-ID: <1368891910.0e27ef696dac5c77a459aa33a2770ba03bee6cb5.blueness@gentoo> (raw)

commit:     0e27ef696dac5c77a459aa33a2770ba03bee6cb5
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat May 18 15:42:48 2013 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat May 18 15:45:10 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/blueness.git;a=commit;h=0e27ef69

tests-only/paxmarking: make test fail upon failed rwx mmap

Package-Manager: portage-2.1.11.62
Manifest-Sign-Key: 0xF52D4BBA

---
 tests-only/paxmarking/Manifest       |   28 ++++++++++++++--------------
 tests-only/paxmarking/files/mytest.c |    9 +++++++--
 2 files changed, 21 insertions(+), 16 deletions(-)

diff --git a/tests-only/paxmarking/Manifest b/tests-only/paxmarking/Manifest
index 34b9056..0a8b43e 100644
--- a/tests-only/paxmarking/Manifest
+++ b/tests-only/paxmarking/Manifest
@@ -3,23 +3,23 @@ Hash: SHA256
 
 AUX Makefile.am 117 SHA256 b6e9384c633cf64c25eade44d4d731cf1cd325bd9786d8f3fd8c55dda949a2f9 SHA512 f7dac2e0c4d6ed02dc9323f7e36028ab83513644ea7e2dd04ae851cb6f419d51abf5994e2e8413996394464eddbc9fffbb90a558a0e70cff23ed71de6a5676de WHIRLPOOL 839770db8752cb40a27d2f941057a2628b27b7dddb06774e45ae12dc2504b5d09373272a5e54303e5155ab001b382abee52d96647e650705bdb2948ab9c2f61e
 AUX configure.ac 154 SHA256 a00338565c527da451305361cbc50f9ee1670b0aa786d83c01f4dc1a947bcf28 SHA512 7b18b09e21832e6a31f4df548093f61d1feb4dcfb025194b1d0de95c6aec49beb71a3db64f4cee0dcf550bc37368c6ec71b16f28aef5046e0508b2cd5ef47ee7 WHIRLPOOL 034ac587c1881998fd2a7ef1ada7d0687c9bd8887c0e245744b09fc6da7e1ae3e9e68e1e25249fdd2f4f8e2b0f0a07eac920a526339973ef4c05aeab6ae06e72
-AUX mytest.c 197 SHA256 a305a88d58722da39aeec18cf559fd280326de858673c2b40ddf5a557d082f73 SHA512 d236fdc8f3d7c48329cd5c65382983db4a00bfb38698f22e7941cf5e96230be601f213fb7953247e578079ff6a90ec817b79e62657bde623ff005456f5e6f9bf WHIRLPOOL 5f14a559ecc04deed3c75fda2c7cc4c841313f7c97b9b5aa3983368c35bc29bd8b1d3d0b312250387263814238fa66d29a86d73818bf165354827da331bf8f76
+AUX mytest.c 262 SHA256 32b3940090e8ab12e28846fa100f9c2d3c0d2fe634ff52edbfa33f82998d9d82 SHA512 cc01308453f18b182ebdf8c585600e4cf2d1959a7358737228857763a743d79b8258c930da4e0fe6fd6fbd8a4947697208dd3afeb41646b8a6181a4182856eb6 WHIRLPOOL 3f496f8894b19c57cf935bbf196f2e07031c1e4f313554cc073ec541ea694a464d31fcbae7352e70cf4d256563055d22a52503c8a608e359938b848949b09824
 EBUILD paxmarking-0.1.ebuild 471 SHA256 f3aacb54e866db0b0729ee178e50487eda5efb0f659823ac3ed2681569b9d5d5 SHA512 5d4c50013099fe86089e5a264b0adf4d4b608d3c84337c32e7ec2be8670f956e50995114f1d3f493fafc8ab2f0f7fb0694718f6b53e15ea77348b9b866d056a0 WHIRLPOOL 033fd33f20ab8b482f162fcbd446ffc813756cf9ed55941854967db442c7bac7b5de21f602596933a0d87d60acd14484e856e6d923af1df36048e140217a715e
 MISC metadata.xml 261 SHA256 8f10a5b7f7571c6e73739c4bed1ecaf34aa8278355e9d163f8bbae77a11575a4 SHA512 7350bedbae4104f555ee7f95e7858069ec6cf5a2d41ffba46aa669dfa5663b100b39cc5f1502b6515aa149d1e661cce1e7e36fbfa350ed086fdf678dbe87661f WHIRLPOOL aa6a80ddc7a5dc80a6cf892e2bfb21616b80c05978435e4f4c6ba7b3be4685a9d15b92a23db0bf333373c436c4e256f02795f6064b476bd7d82309394bd15b3a
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.19 (GNU/Linux)
 
-iQIcBAEBCAAGBQJRl50UAAoJEJOE+m71LUu6S4AP+gMA5VHnuehYEOh2rHYItWkE
-7cCjLQYHiEFoHI3UvIuutY2VIr/jyC29t6vzbIN/dJ59gLaRj6UOmbqK63mC5QxR
-XOwMCWVuoEepe3SgjKI7sGka5Q/oEV0N59IFZUgQ/uUXa7nyLtUZDW7KsdAxdD6f
-3crdzWj+HlVRNFgxUuuY2vILLjKU3UFCZ0oaqBsu9fKjX45B8rssFRvHiTNDHcm6
-lp1Fd+KEbe8ocxtkhrn/mvV7DkgXL1NZxinJQwZ5e8ENCxeh4ASr7jCk/3lb4ACz
-qbwjCW6abhE39DUK82AA63YG0hjPmkMptoxpoBvnxExX+46BaQPEV768HgprCWfI
-Wgt7V6O8rbDdyxoshFji3fba0Z3SBdWrUJ37yj3rIZ/ru/QQwyu1p/kQrwggOWKt
-LH6eun3nRHSz8bOTofdcudZiR6qtgDyYGVDNyv1SoCoAWWm3Q46gBri5Jxunu9qS
-Y2tY7jXqY1NGzIOiuvZE5+2IoFvNXKhD4aVlyS6b9w5brqdNqvIJqR/dZHhvKlDz
-+RdjPoxs5I6ohoUkM1QoUCG1aHZtVCCD0O2v5ZlZu60xJZMq6F5lN59TlcQwX+p7
-HqJoJSBT9vyPOmxf2JuisMheT1VlP111o/wyNaEqu0Bh25IGkcqbjC6XE2S9aWdi
-2ILlf0HS3Md3Ns4AvpWV
-=grGy
+iQIcBAEBCAAGBQJRl6HaAAoJEJOE+m71LUu6CBkQAJvND4axFMF7QLKDYhJHgs6E
+CRmmlY4w5s84t4XNjmJiKSGhuNPh+/ojAIQnrD7XuN0eEuwZZb2TM5hxHmV8Ei+f
+u5xNNjxUL/bo/tFBbCAm7ZsFCGmN2KqTry1elL0yxdweNA7IC32icA13jZuK45Sw
+vcpEEcqcqogQlf0LOsJmvQqzj6FUiRiHxTI6oorbK08JhuGHEbNZjWiEcnky1mCY
+fOV9PUhVn6Ad4F9LVd5UaVTaG71xWxnF781w8tXal9/BTrT3+eq2W47eGlyGFlS/
+rW0K/y8hiMPDYys42x9ZYmgQTa3T2ReNfGBAl0olSqvPnrLn2ETXW9ajAjVd0t53
+jR80d6I61W7/EsFQ3joDZpb6DJhvkkNFkWqKWsLZFwtnOHlwmP3s51Li6s5S8MYV
+jWhbfqcx+3suY6MZbUdK3rhLh/cDayqmBXjVeL1o55lFaLFQ4JK66o1sFFN9ZVLJ
+da2R6UEopd7rQgukSUo+dj5rxk06eUMZ8e3MYqSwhzOe67U6qDKDZXH6hPkgZ8RN
+1Ig+b4eT6jBuC0luKGexP6z76nNH8E3zVepOe8nzPYHf4nusTtG91UoxzpLh51Hi
+zZ0gck7CL0P4H8hf+h1E2E2+n3mWyHnaJwG3BbETxnyXwKZnBrLeEbG0thOBtIxu
+2K3/HKTdBT2AGQHhzUy2
+=peUx
 -----END PGP SIGNATURE-----

diff --git a/tests-only/paxmarking/files/mytest.c b/tests-only/paxmarking/files/mytest.c
index 403f6cf..0435f8f 100644
--- a/tests-only/paxmarking/files/mytest.c
+++ b/tests-only/paxmarking/files/mytest.c
@@ -3,7 +3,12 @@
 
 int main()
 {
+	size_t *m;
 	int one_page = getpagesize();
-	mmap( NULL, one_page, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
-	return 0 ;
+	m = mmap( NULL, one_page, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
+
+	if( m == MAP_FAILED )
+		return 1;
+	else
+        	return 0;
 }


             reply	other threads:[~2013-05-18 15:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-18 15:46 Anthony G. Basile [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-05-18 15:22 [gentoo-commits] dev/blueness:master commit in: tests-only/paxmarking/, tests-only/paxmarking/files/ Anthony G. Basile

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1368891910.0e27ef696dac5c77a459aa33a2770ba03bee6cb5.blueness@gentoo \
    --to=blueness@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox