From 2dfd0acc928e402c47c00cd39968156921ee3638 Mon Sep 17 00:00:00 2001 From: Eduard Burtescu Date: Thu, 12 Feb 2015 02:48:05 +0200 Subject: [PATCH] tests: make run-make/issue-7349 more specific to avoid false positives. --- src/test/run-make/issue-7349/Makefile | 4 ++-- src/test/run-make/issue-7349/foo.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/run-make/issue-7349/Makefile b/src/test/run-make/issue-7349/Makefile index f24933cac01..50dc63b1deb 100644 --- a/src/test/run-make/issue-7349/Makefile +++ b/src/test/run-make/issue-7349/Makefile @@ -7,5 +7,5 @@ all: $(RUSTC) foo.rs --emit=llvm-ir - [ "$$(grep -c 8675309 "$(TMPDIR)/foo.ll")" -eq "1" ] - [ "$$(grep -c 11235813 "$(TMPDIR)/foo.ll")" -eq "1" ] + [ "$$(grep -c 'ret i32 8675309' "$(TMPDIR)/foo.ll")" -eq "1" ] + [ "$$(grep -c 'ret i32 11235813' "$(TMPDIR)/foo.ll")" -eq "1" ] diff --git a/src/test/run-make/issue-7349/foo.rs b/src/test/run-make/issue-7349/foo.rs index 870d1749278..3a2ced80ef4 100644 --- a/src/test/run-make/issue-7349/foo.rs +++ b/src/test/run-make/issue-7349/foo.rs @@ -10,14 +10,14 @@ fn outer() { #[allow(dead_code)] - fn inner() -> uint { + fn inner() -> u32 { 8675309 } } extern "C" fn outer_foreign() { #[allow(dead_code)] - fn inner() -> uint { + fn inner() -> u32 { 11235813 } }